top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How Do I Stop Text From Skipping Lines In Cells?


You can keep all the text in a cell on 1 line.

How to do it

To keep text from skipping lines, type NOWRAP in the <TH> or <TD> tag for the cell that contains the text you want to appear on 1 line. Like this:

<TH NOWRAP>

or

<TD NOWRAP>

EXAMPLE

<TABLE>
<TR>
<TH>Date</TH>
<TH>Event</TH>
<TH>Time</TH>
<TH>Location</TH>
</TR>
<TR>
<TD>May 21</TD>
<TD NOWRAP>Computer Fair</TD>
<TD>6:00</TD>
<TD NOWRAP>Riverdale, MD</TD>
</TR>
<TR>
<TD>June 3</TD>
<TD NOWRAP>Opening of Mega Mall</TD>
<TD>3:00</TD>
<TD NOWRAP>Richmond, VA</TD>
</TR>
<TR>
<TD>June 13</TD>
<TD NOWRAP>Pool Party</TD>
<TD>12:00</TD>
<TD NOWRAP>South West, DC</TD>
</TR>
</TABLE>

Seeing this in the browser looks like this:

Date Event Time Location
May 21 Computer Fair 6:00 Riverdale, MD
June 3 Opening of Mega Mall 3:00 Richmond, VA
June 13 Pool Party 12:00 South West, DC



< BACK







Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
© 2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!