Jump to content

Show / Hide a div with inline styles.


layton

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...