Site layout suggestion

Oliver Fromme check+j7nbva00rsfdmpo0 at fromme.com
Tue Oct 24 08:55:10 PDT 2006


Erik Wikström wrote:
 > Also, if you know some clever way of reducing the line-length (currently 
 > getting 150-160 chars/line at 1280x1024) that would be nice. I said 
 > clever since it's just as bad if those with low resolution or larger 
 > text-size get only 30-40 characters per line.

You can specify the width relative to the font width.
For example, the following will render a section so
that there's an average of 70 characters per line:

<div style="width: 70ex">
<p> Your paragraphs go here ... </p>
</div>

The unit "ex" is about the size of the character "x"
in the currently active font, so it adapts well to
various screen resolutions and font sizes.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd

Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.





More information about the Users mailing list