|
Posted by dorayme on 07/06/06 07:22
In article
<1152168483.951520.51460@b68g2000cwa.googlegroups.com>,
"None" <kentor@gmail.com> wrote:
> in FF <pre width=100> whatever text </pre> works fine and wraps the
> text so that it won't go crazy and go all over the place but with IE it
> messes up and wont wrap the text... how can i fix the output to make
> sure it doesnt go all over the screen in IE ?
In IE, if you want the text to wrap, use just normal words, don't
coin absurdly long ones or play any tricks. Wrap the words in
<p></p> or <div></div> or anything (don't use <pre>). Style the
containing elements to suit:
<p style="width:50%">This will also work for all browsers and not
stretch to more than half of the parent container which is often
just the body.... think the browser width roughly</p>
--
dorayme
Navigation:
[Reply to this message]
|