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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

{white-space: nowrap} other methods?? 1

Status
Not open for further replies.

FesterSXS

Programmer
Feb 4, 2002
2,196
GB
Hi,

I have made use of the white-space method for preventing wrapping of certain text. This is working fine in my version of IE5.5 but I need a method that will work in older versions of IE. Any ideas??

I am currently using it as follows:
Code:
...
span.nowrap {white-space: nowrap;}
</STYLE>
...
<P>One reason for heating the water is to reduce oxygen entering the boiler, with (theoretically) 0 ppm oxygen at <SPAN CLASS=nowrap>100°C.</SPAN></P>

I am trying to stop the '100°C' from appearing as:

100
°C

The browser seems to interpret the degree symbol as white-space. Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Hi Tony,

<nobr></nobr> is the HTML equivalent of {white-space: nowrap;}

So try thsi:
<nobr>100°C.</nobr>

Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top