|  | Posted by Rincewind on 10/01/05 12:16 
On Fri, 30 Sep 2005 23:57:01 -0400, Jud McCranie wrote:
 >>OK, then what is the best way to have fixed-width text, with a
 >>parameter telling the width of the line (so the browser can adjust the
 >>size to get wide lines all on the screen)?
 >>---
 >
 > I should explain what I'm doing.  I'm trying to make a program
 > generate HTML output for its reports.  They all need fixed-width
 > fonts.  Some of the reports range from 75 to 132 characters wide.  I
 > want the recipient of the HTML file to be able to view the file
 > without any horizontal scrolling, and also to have it nearly fill the
 > width of the screen, no matter what screen resolution the recipient
 > has, etc.  I've found out about setting the font size in <P style
 > ...>, but I don't know how to make it be the appropriate size.  (<pre>
 > is listed as depreciated, but I don't know what replaces it.)
 >
 > How can I do that?
 > ---
 > Replace you know what by j to email
 
 If I understand correctly, I think what you need to do is put the text
 inside a <div></div> with a width set to 95%(nearly full screen) this way
 when the browser window is resized or with lower resolution screens the
 text will flow within the <div></div>.
 [Back to original message] |