[CSS] Prob.

mahaju

Mahaju.de
ID: 218702
L
24 Juni 2006
492
17
Hallo,

ich habe ien Prob. in CSS, ich will, das bei Drüberfahren der Link Weiss wird, Gegoogelt habe ich auch schon...

<style type="text/css">
<!--
.all {
font-family: Tahoma;
font-size: 12px;
text-decoration: none;
color: black;
font-weight: ;
}
-->
 
schon mal was von

Code:
.all:hover {
    color: #FFFFFF;
    /* oder alternativ */
    background-color: #FFFFFF;
}

gehört?
Funzt aber im IE nur bedingt (afair bei Links), alternative wäre halt dann Javascript
 
Danke...

so?

<style type="text/css">
<!--
.all {
font-family: Tahoma;
font-size: 12px;
text-decoration: none;
color: black;
font-weight: ;
.all:hover { color: #FFFFFF;
}
-->
 
Eher:
HTML:
a.all:hover { color: #FFFFFF; }
<a href="#" class="all">Link</a>
Als extra Klassifizierung im CSS-Dokument!
 
Danke...

so?

<style type="text/css">
<!--
.all {
font-family: Tahoma;
font-size: 12px;
text-decoration: none;
color: black;
font-weight: ;
.all:hover {
color: #FFFFFF;
}
-->
Nein, so:

HTML:
<style type="text/css">
.all {
font-family: Tahoma;
font-size: 12px;
text-decoration: none;
color: black;
}

.all:hover {
color: #FFFFFF;
}
</style>
 
Danke... ich habe nochwas dazu gefürgt:

<style type="text/css"> .all { font-family: Tahoma; font-size: 12px; text-decoration: none; color: black; } .all:link{color:#000;}; .all:visited{color:#ff0;}; .all:hover { color: #FFFFFF; }; .all:active{color:#f00;}</style>

Ist das so richtig?
 
Kannst du dir mal bitte angewöhnen deinen Code entsprechend in vorgesehene TAG's zu setzen?

Funktioniert es denn? Einige Semikola sind überflüssig:

HTML:
<style type="text/css"> 

.all {font-family: Tahoma; font-size: 12px; text-decoration: none; color: black;} 
a.all:link{color:#000;}
a.all:visited{color:#ff0;}
a.all:hover {color: #FFFFFF;}
a.all:active{color:#f00;}

</style>