[boulder.pm] Font width/length for CGI scripts using CSS

Rob Nagler nagler at bivio.com
Fri Dec 29 23:12:36 CST 2000

> I essentially need to be able to read in a text file...and throw the
> text into a series of fixed sized tables. By calculating the length
> in pixels of the text knowing the width of each charcters for a
> particular font, I can determine when to insert carriage returns
> or html line breaks and to carry over into the next table column.

If you find out, let us know.  I don't believe this information is
available.   Indeed, you have no guarantee the browser will render
in a particular font.

HTML is supposed to be declarative.  The idea is you put the text
in a table cell and the browser does the wrapping (or not) depending
on your cell width.  If you specify all the column widths and the
table width, it should do what you are expecting it to do. 


More information about the Boulder-pm mailing list