...

View Full Version : Controlling the visibility of images or divs using css



Matrix015
10-27-2010, 12:08 AM
I would like to rollover a word in a paragraph and have either an img or div appear.
I tried
#mainText:hover #mainDescription{visibility:true;}
to no avail.
Suggestions.... I need to do this in a min of 10 instances on the screen.

Thans in advance,
Matt

Apostropartheid
10-27-2010, 12:57 AM
Look up the visibility CSS property and make a careful note of what values it can take. Hint: true isn't one of them.

Matrix015
10-27-2010, 02:16 AM
Oops, just used to using that response, I actually coded it correctly using the 'visible' argument.
The best I can do is to get the div mainText to dissapear. When I add the mainDescription div the whole thing stops working.

Apostropartheid
10-27-2010, 04:35 PM
A link would make the problem a lot easier to see.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum