Forum Moderators: not2easy

Message Too Old, No Replies

CSS replacement for nobr tag

         

jerrynyc

1:07 pm on Dec 16, 2003 (gmt 0)

10+ Year Member



I have a table with the left cell as a nav. bar. the html code is:
<TR>
<TD class="sidelinks" HEIGHT="500" ALIGN="left" VALIGN="TOP">
<NOBR><A HREF="somatic.html" >Somatic Voicework&#153 <BR></A>
</NOBR>
<NOBR>
<A HREF="university.html" University Programs <BR></A>
</NOBR>
<A HREF="workshops.html" Workshops <BR></A>
<NOBR>
<A HREF="children.html" Children's Choruses <BR></A>
</NOBR>
<A HREF="consultations.html" Consultations <BR></A>
<NOBR>
<A HREF="corporate.html" Corporate Workshops <BR></A></NOBR>
<NOBR>
<A HREF="teacher.html" Teacher Training <BR></A>
</NOBR>
<A HREF="lovetri.html" LoVetri Bio <BR></A>
<A HREF="testimonials.html" Testimonials <BR></A>
<A HREF="videos.html" Articles and Videos <BR> </A>
</TD>

and the css is:

td.sidelinks a{
display: block;
border: 1.4px solid #006666;
border-color: #006666;
font-size: .85em;
}
td.sidelinks {
Background-color: #ff9966;
font-size: .85em;
}

I use the nobr tag to keep the link text on one line. I would like to replace the nobr tag in the html with a css one that has the same effect and that would work in Ie 5 and other main browsers.

Jerry

mipapage

1:13 pm on Dec 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried: 'white-space: nowrap'?

I've never used it with tables..

jerrynyc

2:07 pm on Dec 16, 2003 (gmt 0)

10+ Year Member



Would that work on most browsers and how would I code for it? Would I do it for the td?
Jerry

mipapage

2:17 pm on Dec 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jerrynyc,

you would have to give it a try, unless someone else chimes in, as I never really did work with tables, beyond using them for tabualr data.

Your css would be

table tr td {white-space: nowrap}

if that didn't work I would try

table tr td a{white-space: nowrap}

jerrynyc

2:46 pm on Dec 16, 2003 (gmt 0)

10+ Year Member



Thanks Mipapage, I'll give it a try.

Jerry