You are here: Re: problem with <pre> tag « HTML « IT news, forums, messages
Re: problem with <pre> tag

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация