
Signature
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
> How do you know how much text is contained in 500px? It could be
> more or less than the amount you think is best. If you need to
> specify widths, do it in ems, and/or use max-width (also specified
> in ems).
I don't honestly care how much text is in 500px; I just know that if my
browser window is maximized to 1278px wide, I don't want text going all
the way across from one end to the other. But if the window is only
800px wide, I do want the text to take up most of the window. I tried
max-width, and it works great in Netscape, but IE6 doesn't appear to
support it.
And, yeah, ems, pixels, whatever. If I specify a width in any units,
it leads to the problem with IE shoving the text down. I'd like to
know how I can constrain the width without causing that problem in IE.
Thanks for your input. It does help clarify things.
Karen
John Dann - 15 Aug 2006 15:45 GMT
>... I'd like to
>know how I can constrain the width without causing that problem in IE.
I don't know what the cognoscenti think of this solution but it worked
for me. See:
http://www.svendtofte.com/code/max_width_in_ie/
JGD
Chris Sharman - 29 Aug 2006 13:39 GMT
>> How do you know how much text is contained in 500px? It could be
>> more or less than the amount you think is best. If you need to
[quoted text clipped - 11 lines]
> it leads to the problem with IE shoving the text down. I'd like to
> know how I can constrain the width without causing that problem in IE.
You're confusing pixels with size.
The appropriate font size is whatever the user says it is, and the
appropriate line length is best expressed in terms of font size (ems).
Eg - I have a super-duper 2000*1600 CAD/CAM monitor - I won't appreciate
you shrinking your column width down to a quarter of my screen, because
my font size is set quite large (in pixels) because my screen is very
high resolution - 1200 pixels isn't that wide.
My co-worker uses the same screen at 800*600, because she's vision
impaired, and can't easily view websites (and their images) large enough
any other way.
There's no way the same number of pixels for both of us is ever going to
be anywhere near sensible. Use ems, and we both get something reasonable.
And on the subject of usability - if you force horizontal scrolling on
small windows you make the text extremely tedious to read.
Chris