make a div tag contain white spaces?

K

Kourosh

Is there a style sheet that would let me do this? I want to have the
behaviour of a PRE tag (so white spaces would be shown).
 
K

Kourosh

thanks for replying, yea i did see that but it doesnt seem to do
anything for some reason (I'm testing in IE 6)
 
B

BootNic

Kourosh said:
thanks for replying, yea i did see that but it doesnt seem to do
anything for some reason (I'm testing in IE 6)

DOCTYPE makes a difference.

Try one of the following:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">


--
BootNic Friday, May 26, 2006 7:28 PM

"They may forget what you said, but they will never forget how you
made them feel."
*Carl W. Buechner*
 
J

Jukka K. Korpela

Kourosh said:
thanks for replying,

Please learn to quote in the Usenet way; see
http://www.xs4all.nl/~wijnands/nnq/nquote.html
yea i did see that but it doesnt seem to do
anything for some reason (I'm testing in IE 6)

It could be something on your page, you know. Consider posting the URL if
you want help with it.

Also consider posting an explanation of what you really wish to accomplish,
if you want really useful help. Why would you want to include preformatted
text on a web page, and specifically in manner that does not work when your
style sheet is not used?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top