SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    May 2007
    Location
    Montreal
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change background of div onmouseover

    Hi,

    I would like to change the background color of a div onmouseover -ing.

    .videoRow:hover {border: 1px solid black; background-color: #216594}
    .videoRow {border: 1px solid #DFEAF7;}
    Using this in the css works on a div with the label videoRow, but only in firefox.


    How can I get this to work in Internet Explorer also?

    Thanks,
    Chris

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To do this in IE, you need javascript to add event handlers and an extra class - the suckerfish method works well for this.


Bookmarks

Posting Permissions

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