css hover question
Firstly let me tell you that i don't do design, i just have to make a correction..
So ive got some pics one next to another which in fact are links.
I'd like when the user puts the cursor over a pic, a text to appear underneath it.
hover or something???
thank you all.
There are a couple of ways I guess. One is to "normally" have the text already under the links/images, but hidden by being the same colour as the background. On hover, the text colour could change to something visible. The text would actually have to be in the link though (but under the picture), and if there's other stuff under the links/images, then the text would take up space.
Another way is, with the text still actually part of the link/image, with css, the default for the text is visibility:hidden, and on hover it's visibility:visible. The text will still take up space.
Another way is to use Mike Cherim's pop-map trick. It's cute. The text doesn't appear or take up any space until the user hovers on the link/image, AND the text isn't part of the link/image either-- it's in a seperate box. http://mikecherim.com/experiments/css_map_pop.php
But giving you a more specific answer would probably mean looking at both your page and the code, since some solutions are better than other depending on the circumstances.
And the Crusty Old Guys Who Know Stuff here probably can give you three more ways to do this too : )
thanks stomme i'll check it out!
Yeah, as Stomme said, it's a disjointed CSS rollover. And I think you were given one of the better examples of it too, so I won't bug you with how I'd do it.