faqts : Computers : Internet : Web : CSS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

21 of 25 people (84%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

how do I set the background color of a td (without any hyperlinks) to change color using hover?

Dec 5th, 2001 07:37
Ben Gordon, Danny Sementilli,


Morning,
You can use this setup with or without links and it should work in both 
browsers
<table summary"Nav menu" width="98%" border="0" cellpadding="0" 
cellspacing="0">
<tr >
<td width="8%" onMouseover="this.style.backgroundColor='yellow'"
onMouseout="this.style.backgroundColor='white'">
<ilayer width=100%><layer width=100% 
onMouseover="this.bgColor='yellow'"
onMouseout="this.bgColor='white'">Main</ilayer></layer>
</td></tr>
</table>
Later
Caislander
From the land of Sunshine, Surf & Code