[thelist] Re: Wired News Site Update - What do you think?

Ben Gustafson cbg3 at earthlink.net
Fri Oct 11 13:15:00 CDT 2002


> > http://www.wired.com/news/culture/0,1284,55675,00.html
> > Just thought it was interesting...
>
> More than interesting, its amazing. A massive
> commercial site (20-25
> million page views) makes the leap. This is a
> fantastic counter to the
> belief that CSS-base layouts are only for
> niche/blog sites.

So, have others dug into the CSS to see how it works? That's also interesting.
They use percentages instead of keywords to specify the font sizes, and use a
JavaScript to set which of the alternate stylesheets is active to change the
text size. The content area is nested in a div, whose ID also has a font size
set by percentage, and they take advantage of the "compounding" that occurs
with nested tags and percentage font sizes, and change the div's font size to
125% for the largest, and the small to 86%, thus compounding to all the tags
within the div. Pretty clever!

--Ben



More information about the thelist mailing list