FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Highlighting Table Cells

 


puccavn
--------------------------------------------------------------------------------

Highlighting Table Cells
Highlighting table cells in Netscape browsers
Added on 29/05/2004 by Jay
Views: 5122 Comments: 4 Rating: 6.3/10 (4 votes)

This tutorial is intended to show someone how to code mouseover changing of a table cell background colour, without the use of JavaScript.

Note, This tutorial will only work with Non Internet Explorer browsers

First, set your navigation link class:
.navigation { background-color: #FFFFFF; font-size: 11px; color: #000000 }

And then apply it to your table cells:
<td class="navigation">
Now, we only want the CSS to apply the mouseover to all <td> tags, so here's the code to do that:
td.navigation :hover {background-color: #000000; display: block; color: #FFFFFF }

Once you've put this inside your stylesheet, it works.. simple as )

This works much better than JavaScript and is also hidden from people viewing your code (If your using external style sheets).
Related topics

Opera 9.0 Technology Preview 2
Making a table a link.
The worlds shortest and laziest Mambo tutorial.
What do you use to make your page layout?
Table Cell Widths in HTML

What do you think?
What is a site without tables?
changing background in CSS
FriHost PHP Parser doesn´t work?
JavaScript and iFrames

What are your Firefox extensions
php printf number formatting question
need free wysiwyg html editor
[urgent] unknown error
Mozilla vs IE
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.