Formatting

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Formatting

Post by 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
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Post by 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest