[thelist] Re: auto-sized boxes, and a CSS rant

John Snavely snavely at amnh.org
Tue Jun 25 13:22:00 CDT 2002


Basically, you don't want to set a width on a box that will have
varying input text lengths. But if you don't specify a width the box
takes up as much width as it can in a browser window. So your text is
left aligned to a centered box that is 100% wide.

The solution:
Specify a width for your box, but in em units. That way when a user
increases their font size, the size of the box will also increase
along with the font.



More information about the thelist mailing list