CSS Disjointed Rollovers
CSS Disjointed Rollovers
- Started
- Last post
- 3 Responses
- steadyvibe
I am looking to make an image visible (visibility: visible) on rollover of a text link. Is there a simple way of doing this with CSS?
- version30
line height
background positioning
- Stugoo0
try,
a.imgrollover:link img, a.imgrollover:visted img,
a.imgrollover:active img{ display :hidden }a.imgrollover:hover img {display: normail}
(or whatever the normal display is.) should work.
so u want the img inside the a tag, you could in effect do this with any tag, but hovr is recognised accross most modern browsers.
just style the link appropratley.
- maximillion_0
use the a:hover with
background-image:url(images/your...
as using display:none; display:block; etc will mean any other elements round it will move about when you hide or show it