Leaking Styles Part 2

28th June 2003 · Last updated: 5th October 2016

It turns out the effect detailed before is correct. Alex Bishop wrote to me to explain that because I'd not used title="normal" on the first stylesheet link, the styles were always applied. Remember, I'd removed the title due to a bug in Mozilla 1.0. Once I restored the title, everything worked as expected.

Alex also provided a link to Eric Meyer's article Correctly Using Titles With External Stylesheets which explains it all. This behaviour is actually a good thing. It means I can leave out the title and use a standard set of styles for each page. Then the alternative stylesheets need only contain any genuine differences, such as colour changes and not the entire styles duplicated again. A great way to save bytes.