bluebomber Posted March 3, 2011 Share Posted March 3, 2011 I'm trying to select all elements with the class "site1" when the user hovers over an image with the id "i1"I'm using:img#i1:hover .site1 {etc}but I'm having no luck getting this to work - does anyone know what I should be doing here? Link to comment Share on other sites More sharing options...
Ingolme Posted March 3, 2011 Share Posted March 3, 2011 That will target all elements with class ".site1" that are descendants of an <img> element with id "i1"You need Javascript to work with elements in that way. Link to comment Share on other sites More sharing options...
bluebomber Posted March 3, 2011 Author Share Posted March 3, 2011 Ouch, this wasn't going to be as simple as I thought then. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.