Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pre

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Anyone know why width would not work within pre?

<pre width="100">

[conehead]
 
The <pre> tag was deprecated as of HTML 4.01.

If you think about it, it makes sense. What if I have the following:

[tt]
<PRE>
This text will display
exactly as I want it to.
</PRE>
[/tt]

But then I apply a width of 10 pixels to it. That doesn't make much sense, does it? The <pre> tag is utilized to display text exactly as you display it, so that, say, 30 spaces show up as 30 spaces, not just 1, as in normal HTML.

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
I'm sorry.

My mistake. The <PRE> tag wasn't depricated. The width attribute of the <PRE> tag was. Sorry for the confusion!

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top