[RESOLVED] Why doesn't my CSS class rule get used
I'm just trying to teach myself a bit of CSS and it's pretty straight forward but I am getting something odd.
I built a css file, tried out various rules, all good.
Now I edit the css file. Everything compiles ok but it's still using the rules as they were before I edited them. I've even removed some of them from the css file and they're still being used. I tried removing the reference to the css file and the rules all stop being used (as I'd expect) but when I add the reference back in and the old rules reappear but not the new ones. Aargh!
I'm guessing there's some 'built' version of the css file and that's what's actually being used. But rebuilding the web sire isn't causing the built css to refresh itself so my edits aren't being picked up.
Any clues?
edit> forget it, I was hitting f5 not ctrl f5. Just a bit of cuture shock switching from desktop dev.
Re: [RESOLVED] Why doesn't my CSS class rule get used
Hello,
Editing and updating CSS files can be tricky. The browser that you are using will try very hard to aggressively cache any items that it can locally, rather than re-download them each time.
When you make a CSS change, you want to make sure that you clear your browser's temporary file cache first, then access your page.
Typically, when I have made a change, and I want to make sure that the change came through, I alternate another setting (such as background colour) so I can be sure that the change has come through to the browser.
Gary