I would like to be able to hover over the image, referring to the hover property on the text link that is next to it.
I have a preview of the video image and the name of the video written next to it as a text string. I would like to do this so that I can hover over the image and make the text still change color as a hover effect, without having to make the image and text into one image for obvious searches and ease of use; saving text as text, etc.
UPDATE: I also want to make sure that the text link that is now in the "span" cannot just navigate using "margin-left", but can be raised. By default, in my code, it just drops to the level of the lower part of the image 60x60 pixels. I want it to be taller so that it looks good, but "margin-bottom" does not help. I want it at "Center Height" 60x60 img ... not at the bottom where it goes by default.
ANY ideas? thank you
ps I am open to java script and jquery ideas posted here, but I am a complete newbie and you will need further explanation. I prefer CSS.
Now my code is:
my html:
<div id="example">
<a href="#">
<img src="image/source_60x60px.jpg">
<span class="video_text">Image Text</span>
</a>
</div>
my css:
div#example { float:left; width:358px; height:60px; margin-top:20px; }
div#example a { color:#B9B9B9; width:100%;}
div#example a:hover { color:#67a; text-decoration:none;}
span.videotext { margin-left:80px;}
Jonn source
share