Internal Server Error
what the voices in my head tell me to write
Tuesday, August 16, 2005
I have been struggling with the font-size switcher on Ingentaconnect for ages. A year on and off.
This meant that the switched in files were pretty huge as I had to account for lots of little divs etc and if I had a <li> nested within a <div> it would do the sizing twice unless I added in an inherit rule. Of course this was a very hard to maintain mess.
Now the switcher files simply change the font-size for <body> and another CSS file is defining the sizes in ems for <h1>, <h2> etc. (Of course there is a little hack for IE not getting sizes right) Its about a 95% reduction in the ammount of CSS and far easier to work with.
Permanent link and Comments posted by Rob Cornelius @ Tuesday, August 16, 2005