News for hackers. Stuff that matters.
Re:Why You Should Design Fixed-Width Websites by gojomo on Wednesday February 18, 2009 @09:28PM (#486606)
That's easy to do with a fixed width in units of ems

Almost, but not quite. That adjusts the width to match the font-size. I want the other way around: adjust the font-size to match the width. (If I make my browser window wider, the text should scale up.)

Currently, this would take Javascript -- either adaptively scaling the font until the desired words-per-line is reached, or calculating what font-size would mean the existing width, whatever it is, is ~35em.

Re:Why You Should Design Fixed-Width Websites by Daniel_Newby on Wednesday February 18, 2009 @10:29PM (#486670)
Newegg does that with the menus and sidebar and it pisses me off. I find the text uncomfortably small, but when I fix it their Javascript jams it back to a small size.

With high-res screens and/or people with vision trouble, setting a particular font size is generally a bad idea.

Re:Why You Should Design Fixed-Width Websites by gojomo on Wednesday February 18, 2009 @11:16PM (#486720)
Good point; any such auto-sizing shouldn't override user zooms.