Forum Moderators: open

Message Too Old, No Replies

Style Codes

Why do pre and code collapse white space?

         

Reflection

7:20 pm on Jul 22, 2003 (gmt 0)

10+ Year Member



Well the subject says it all.


There should be white space between this and this


There should be white space betw [b]this[/b] [i]and this[/i]

Brett_Tabke

12:42 pm on Jul 23, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Because of the fact some browsers pad text areas with spaces. Thus all double spaces must be removed.

marek

12:48 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



Reflection, try to include the following line into you style sheet:

pre, code {white-space: nowrap}

Brett_Tabke

1:04 pm on Jul 23, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



he was talking here on WebmasterWorld in posted messages ... ;-)

Reflection

5:04 pm on Jul 23, 2003 (gmt 0)

10+ Year Member



Thanks for the reply. So I guess pre doesnt really do much then ;).