layton Posted August 8, 2007 Share Posted August 8, 2007 I know this sounds like a dumb thing to do but in this situation there really isn't other options other than javascript, but I'm trying to stick with full css if possible.Basically I want to show or hide a <div> on a mouseclick or rollover but by using inline styles.I'm coding for a portal environment so anything outside of the body tag gets stripped and then everything within the body tag gets placed into "channels".Any help would be appreciated. Even a simple "not possible" comment. Link to comment Share on other sites More sharing options...
S@m Posted August 8, 2007 Share Posted August 8, 2007 You need javascript to grab the event. (mouse click, rollover, etc.)I could be wrong, but I'm pretty sure you need the help of js with css to make your effect. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 8, 2007 Share Posted August 8, 2007 You can change the CSS properties of a single object using inline styles (put your changes in the :hover pseudoclass), but you cannot hover over one object and change the properties of another object using strictly CSS. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.