Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Border on an individual table row (tr) ?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22986
    daveslab
    Member

    Hi all,

    I’m trying to dynamically give a table row a red dashed border whenever a person mouses over it. My jQuery code is this:

    $(‘table#timeline tr’).mouseover( function() {
    $(this).css("border","3px dashed red");
    })

    The jQuery code isn’t important. I know that part works because I’ve used the css function to change the background color instead and that works just fine. However, when I apply it to the table tr’s, the border does not change at all. I also tried changed it with Firebug and that did not seem to work either. Any ideas what might be wrong?

    Thanks all!
    Dave

    #49261
    daveslab
    Member

    Yes, Chris, you’re right. I found out eventually. That kind sucks, but you do have to change the sizes of the individual cells, although jQuery selectors do make that easy :)

    Was used in this greasemonkey script if interested: http://whatthetweet.daves-lab.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.