Table Cell Colour Change

Discussion in 'HTML' started by Blindsya, Sep 17, 2003.

  1. Blindsya

    Blindsya Guest

    Is it possible to change the background colour of a table cell when the
    cursor is hovered over it? I heard it was possible to do this using css.
    Any help would be much appreciated.
    Blindsya, Sep 17, 2003
    1. Advertisements

  2. td:hover { background-color: blue; }

    Not supported by MSIE

    Most people who want this are trying to get an effect to indicate that the
    link in the cell (which is the only thing in the cell) is active. This
    isn't something tables should usually be used for...

    .... has nicer semantics and works well.
    David Dorward, Sep 17, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.