Forum Moderators: not2easy
This will be easiest to explain if I start with a little diagram:
In the root directory...
-- index.html
-- styles.css
-- dir2 (sub-directory)
---- index.html
---- dir2-styles.css
Each HTML file uses the CSS file from the same directory it's in. Notice the stylesheets both have different names and are located in different directories.
If I go to /index.html, it loads the correct stylesheet. I then go to /dir2/index.html and it also loads its correct stylesheet. The problem is that if I click the Firefox "Back" button, /index.html loads initially with the correct stylesheet, then quickly switches to using the stylesheet from /dir2.
It reminds me of FOUC in reverse. The only difference is that, while FOUC uses *no* stylesheet at first, then loads it, this problem starts with the correct stylesheet, then applies the wrong one.
I've tried using the <link> tag with relative and absolute URL's, the @import method, etc. I can't get this problem to go away. There's nothing dynamic about these pages - straight HTML. What gives? I've never seen Firefox do anything like this before!
Thanks for any ideas,
Matthew
[edited by: MatthewHSE at 3:51 pm (utc) on Nov. 17, 2006]