You are here: Re: can't get css hover to work on link borders « HTML « IT news, forums, messages
Re: can't get css hover to work on link borders

Posted by Jonathan N. Little on 06/28/05 05:33

Lauri Raittila wrote:

> in alt.html, Greg N. wrote:
>
>>Greg N. wrote:
>>
>>
>>>http://coolhaus.de/misc/test3.htm
>
>
> a:hover img {}
>

This will do what I think you want for both IE and the Geckos...

.left { float: left; }
.imga IMG { border: 0; vertical-align: bottom; }
a.imga { border: 2px solid green; }
a.imga:hover { border: 2px solid red; }

<a class="imga left" href="http://www.google.de"><img
src="http://coolhaus.de/misc/smily.gif" width=29 height=20></a>
<a class="imga left" href="http://www.google.de"><img
src="http://coolhaus.de/misc/smily.gif" width=29 height=20></a>

Note: I floated both links, you see what happens if you don't...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация