Reply to Re: CSS hover style affects image hotspots

Your name:

Reply:


Posted by Els on 02/06/06 19:04

Steve Gouldstone wrote:

> I want to get links highlighted in a differernt colour when the mouse
> moves over them (yellow), so I have the following CSS in my HTML file
> header:
>
> <style>
> <!--
> a{text-decoration:none;font-weight:bold;color=navy}
> a:hover{color:red;
> text-decoration:underline;background-color:#FFFFAF;font-weight:bold }
> -->
> </style>
>
> This works fine ... except that image hotspots are also coloured
> yellow when the mouse moves over them. This looks terrible!
>
> Is there some way to define the hover style so it affects text links
> only?

Yes, have counter styles for the image links later in the stylesheet.
For instance:

a:hover img{
color:white;
text-decoration:none;
background-color:white;
}


--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

[Back to original 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

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