AxelPAx Posted February 21, 2021 Share Posted February 21, 2021 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 comment Share on other sites More sharing options...
melahi Posted February 22, 2021 Share Posted February 22, 2021 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 More sharing options...
dsonesuk Posted February 22, 2021 Share Posted February 22, 2021 You are not! pasting the style tags in to css file as well, are you? The css file does not require them. Its been done before so I thought I'd ask. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now