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

Table cell mouseover

Status
Not open for further replies.

jackyl

Programmer
Oct 23, 2001
44
CA
Good morning ...

I have made a column of table cells that each have a text link in them ... I have it set now that when the table cell is moused ocer the background goes from light grey to medium grey.

When I mouse over the text it goes from red to white.

(Ya, I know ... it's ugly)

my problem is when I mouse over the cell, but not the text ... I still have the red text with the medium grey box. and this is no good ...

Below is my code.

<style type=&quot;text/css&quot;>
.nav { color: CC0000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; text-decoration: none; font-weight: bold;}
.nav:Hover {color: FFFFFF;}
.cell_overmain { BACKGROUND-COLOR: 999999 }
.cell_outmain { BACKGROUND-COLOR: CCCCCC }
</style>

AND IN THE BODY

<td width=&quot;148&quot; onmouseover=&quot;this.className='cell_overmain';&quot; onmouseout=&quot;this.className='cell_outmain';&quot;><a href=&quot;&quot; class=&quot;nav&quot;>About Us</a></td>

Any help would be appreciated.
M...


 
Just so the web designers know, this thread has been answered in the HTML/CSS forum.

Rick -----------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top