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

table borders with style sheets 1

Status
Not open for further replies.

z35

Programmer
Dec 21, 2001
206
US
Hi,

Does anyone know the exact code using style sheets that changs the color of the border on a table cell when the mouse goes over that cell...like a rollover?
 
<style type=&quot;text/css&quot;>
.movrStyle
{
border-color:red;
border-width:1px;
}
.moutStyle
{
border-color:000000;
border-width:1px;
}
</style>
<table border=1>
<tr>
<td onmouseover=&quot;this.style.cursor='hand'; this.className='movrStyle'&quot; onmouseout=&quot;this.className='moutStyle'&quot;>HI</td>
<td>HELLO</td>
</tr>
</table> ....:::::.... xxLargeWASP ....:::::....
 
couldn't you just use the :hover psuedo class? ===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top