Highlight Table Row While Mouse Hover

Highlight Table Row While Mouse Hover

In this post I want to share about how to Highlight Table Row While Mouse Hover. No javascript but only CSS.

Here are the CSS code:

tr:hover{
	background-color:red;
}

Next the HTML code:

<table border="1">
<tr><td>test</td></tr>
<tr><td>test</td></tr>
<tr><td>test</td></tr>
<tr><td>test</td></tr>
<tr><td>test</td></tr>
<tr><td>test</td></tr>
<tr><td>test</td></tr>
</table>

Done, we just make a simple Highlight Table Row While Mouse Hover.

Good luck.

http://septiadi.com/2011/02/17/highlight-table-row-while-mouse-hover/

Advertisements

2 responses to “Highlight Table Row While Mouse Hover

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: