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

Table help

Status
Not open for further replies.

Bell1991

Programmer
Aug 20, 2003
386
US
I am extremly new to CSS's and i think i have a smiple quesiton. I want every other table row a different color - which i can do - but if there isn't a value in the td - then the row color stays white. Any ideas how to make that td a color when there is not value?

<tr>
<td>Name</td>
<td>Date</td>
</tr>
<tr>
<td>Jason</td>
<td></td>
</tr>


So - in the above example the second tr should be blue - but only the first td will be blue - the other td will be white...


Thanks
 
Place a non-breaking space there when there is no data. It will still display as blank in the browser:

<td>&nbsp;</td>

Hope this helps ...
- VB Rookie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top