Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

Formatting

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Formatting

Postby ruturajv » Sat Aug 02, 2003 3:40 am

Hi,
I have text which is pre formatted so I want to display it as it is. If i use <pre> tag, I get the result, but for very long lines, the table gets extended which i don't want. I use no the wrapping attributes for pre, but work only for netscape and the line gets trimmed but it doesn't work for IE..

Help! 8O
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby swirlee » Mon Aug 04, 2003 9:20 am

By definition, preformatted text will only have line breaks where they are present in the text. That is, it won't wrap (and shouldn't). If you just want the text monospaced and not preformatted, use the <tt></tt> HTML tag.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.