DragonFly users List (threaded) for 2006-10
Re: Site layout suggestion
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>
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.
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.