Jump to content

Question about html and css


Recommended Posts

Hi,

 

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?

Regards,

Link to post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...