Ich verstehe mal wieder die Linksachen nicht…
Will in allen Links, außer ein paar wenigen, KEINEN Unterstrich haben. Das habe ich dann so formatiert:
- Code: Alles auswählen
a { text-decoration:none;
outline: none; /*klappt nicht in allen browsern */
}
a:link { color: #1d577f; }
a:visited { color:#1d577f; }
a:hover, a:focus { color:#F00; }
a:active { color:#f00; }
#navigation a:link { color:#fff; }
#navigation a:visited { color:#fff; }
#navigation a:hover, #navigation a:focus { color:#f00; }
#navigation a:active { color: #fff; }
#rechts a:link { color: #999999 !important; }
#rechts a:visited { color:#999999; }
#rechts a:hover, a:focus { color:red !important;
/*border-bottom: 1px solid red !important;*/
}
#rechts a:active {
color:red;
}
Bei den wenigen die einen haben sollen will ich es so machen. Klappt aber nicht! Nicht mal mit !important
- Code: Alles auswählen
.underline a {
text-decoration:underline !important;
}
<p><a href="#" class="underline" title="Erstellt eine pdf-Version der aktuellen Webseite" target="_blank">pdf-Version der Webseite</a></p
Die "Erstellt eine pdf-Version der aktuellen Webseite" soll jetzt mit der "class=underline" einen Unterstrich haben.
Hab immer wieder solche Probleme...
Wenn ich es DIREKT mit einem "style="text-decoration:underline"; " in die Tags schreibe klappt es...
Wo liegt das Problem? !important sollte es doch erzwingen?