[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] css driller



Thomas Rasmussen wrote:

Carl Andersen wrote:

Hej jeg har lidt problemmer med at få css til at virke som jeg vil have. Jeg har valgt et stykke grafik til som folk kan trykke på for at komme op til toppen af siden. Men når musen føres ind over grafikken bliver der vist samme farve som ved a.hover ved almidelig text og det vil jeg ikke have, der skal ikke være nogen linkfarve overhoved ved grafikken.
prøv evt. at se linket her http://www.ligustica.dk/firma/dronninger.html.
Jeg har goglet et par dage uden at finde en løsning


Her er css text farven

a:link {color:#09c;}
a:visited {color:#07a;}
a:hover {background-color:#eee;}

Og her grafik link

img {
border: none;
}

a.img:link  {
text-decoration:none;
background-color:transparent;
border: none;
}
a.img:visited {
background-color:transparent;
border: none;
}
a.img:hover  {
text-decoration:none;
background-color:transparent;
border: none;
}

Hvad gør jeg fokert, er det kun i mozilla at linkfarven ses. Jeg har ikke adgang til en win og IE.



a.img:hover er forkert, det betyder mouseover på en <a> tag af class img dvs.: <a class="img">

Jeg tror jeg ville sætte en class attribut (evt. id) på <a> tag'et
<a href="http://www.ligustica.dk/firma/dronninger.html"; class="turup" title="Tilbage til toppen"><img src="dronninger_files/turup.gif" alt="top" class="test" width="25" height="31"></a>


Og i mit stylesheet ville jeg så indsætte:
.turup:hover {background-color:transparent;}


Det virker :-) Takker for hjælpen.

--
Carl Andersen            |
http://www.linuxcarl.dk/ | Slackware
http://www.ligustica.dk/ | Bee-keeping










 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *