www.webdeveloper.com
Results 1 to 3 of 3

Thread: making cell highlight when rollved over

  1. #1
    Join Date
    Jun 2010
    Posts
    62

    making cell highlight when rollved over

    I have css code that highlights table rows when moused over, but how do I highlight a table cell when mouse cursor is over it, using css?

  2. #2
    Join Date
    Sep 2009
    Posts
    93
    tell css code what you have

  3. #3
    Hi,

    We can do it using simple css code. You can write your css for the particular <td> tag ie., column of the table while hovering it.

    Take this example:

    html code:

    <table>
    <tbody>
    <tr>
    <td>Hai</td>
    <td>Hello</td>
    </tr>
    </tbody>
    </table>

    css code:

    table td:hover{
    border:1px solid blue;
    }

    It will highlight the particular column with blue border while mouse over on it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles