ClickStart logo CSS to the point

Changing a row's background color on hover

You can use the hover pseudo class to change a row’s background color when the user’s mouse is over the row. Pseudo classes are often used with links, but they can also be used with other tags.

Internet Explorer only supports the hover pseudo class for links.

Screenshot

Code

tr:hover { background-color: #ffff00; }

Example

Click here to see an example.