You are here: Re: CSS hover style affects image hotspots « HTML « IT news, forums, messages
Re: CSS hover style affects image hotspots

Posted by Els on 02/07/06 18:11

Steve Gouldstone wrote:

> On Mon, 6 Feb 2006 18:04:34 +0100, Els <els.aNOSPAM@tiscali.nl> wrote:
>
>>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:
>>
>>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;
>>}
>
> Thanks very much for this hint. Unfortunately, I still can't get it to
> work correctly. I have this:
>
> <style>
> <!--
> a{text-decoration:none;font-weight:bold;color:navy}
> a:hover{color:red;
> text-decoration:underline;background-color:#FFFFAF;font-weight:bold }
> a:hover img{text-decoration:none; background-color:transparent;
> color:transparent }
> -->
> </style>
>
> and the setting the img hotspots to transparent does not work. If I
> set them to 'red' for example it works, but as it is I still only get
> a horrible coloured rectangle where the image is, when all I want is
> 'nothing to happen'!
>
> Maybe I'm doing something stupid, but do you have any more ideas?

Without seeing your page this is of course a guess, but what if you
add this?
a:hover img{border:none;}

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

 

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

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