<pre> formatting?

liunx

Guest
With the code <pre>

can you set a width and font type for it?

Or would you use a css class?

ie
<pre style="width:600px font-family: Verdana, Arial, Helvetica, sans-serif;"

or something like that?

Thanks

SheldonWouldn't it be easier to just give it a try?If you are going to assign a width to <pre>, then it's probably a good idea to think about how you want to handle overflow or clipping (<!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS21/visufx.html#overflow-clipping">http://www.w3.org/TR/CSS21/visufx.html# ... w-clipping</a><!-- m -->).<pre> would be equivalent to <div style="whitespace: pre">
 
Back
Top