Jump to content

Question about html and css


Recommended Posts



When I try to recreate this header in a text editor: https://www.w3schools.com/howto/howto_css_responsive_header.asp

It only works when I paste the css in the index.html (<style><style/>) But when I try to paste the css in a style.css file it does not work. Can anyone explain to me why this is?


Link to comment
Share on other sites

It works fine for me, but I suspect you may have tried it a few times and the likely problem is as follows:

css files are cached by your browser, so when you update it, the browser carries on using it's out-of-date copy.

You have to go into your browser toolbox and find the option to clear the cache then when you reload it will get the new version, but keep in mind it will carry on using that until you clear the cache again!


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...