![]() |
[CSS] CSS Datei enthält anscheinend Fehler
Hallo!
Habe mir für meine Website mal ne CSS-Datei geschrieben. Aber ich glaube sie enthält Fehler was die Links betrifft. Hier mal der Ausschnitt aus der CSS Datei:
Code:
Liegt da irgendwo ein Fehler? Beim Fahren über einen Link wird der Link nicht unterstrichen und auch nicht überstrichen. Woran kann das liegen? Sie ist fett und die Farbe stimmt auch aber nicht unterstrichen und nicht überstrichen.
a {
color: #00CC33; font-family: Times; font-weight: bold; } a:link { text-decoration:none; } a:visited { text-decoration:none; } a:hover { text-decoration:underline, overline; } a:active { text-decoration:underline; } So wie ich das gemacht habe steht es auch in SelfHTML... Danke im Vorraus! MfG Florian :hi: |
Re: [CSS] CSS Datei enthält anscheinend Fehler
Ich vermute mal, daß Du eine (ältere) Mozilla-Engine hast, und diese verhält sich leider nicht korrekt bei den Sub-Classes. "Vererbung" etc. wird nicht richtig gehandhabt.
Code:
...:cat:...
a {
color: #00CC33; font-family: Times; font-weight: bold; } a:link { color: #00CC33; font-family: Times; font-weight: bold; text-decoration:none; } a:visited { color: #00CC33; font-family: Times; font-weight: bold; text-decoration:none; } a:hover { color: #00CC33; font-family: Times; font-weight: bold; text-decoration:underline, overline; } a:active { color: #00CC33; font-family: Times; font-weight: bold; text-decoration:underline; } |
Re: [CSS] CSS Datei enthält anscheinend Fehler
Code:
Das ist Validiert, also Fehlerfrei. Die Reihenfolge muss auch so sein, aber das hast Du ja glaub ich.
a {
color : #00F; font-family : Tahoma, Verdana, Arial; font-weight : bold; font-size : 12px;} a:link { color : #00F; font-family : Tahoma, Verdana, Arial; font-weight : bold; font-size : 12px;} a:visited { color : #90C; font-family : Tahoma, Verdana, Arial; font-weight : bold; font-size : 12px;} a:hover { color : #0F0; font-family : Tahoma, Verdana, Arial; font-weight : bold; font-size : 12px;} a:active { color : #F00; font-family : Tahoma, Verdana, Arial; font-weight : bold; font-size : 12px;} |
Re: [CSS] CSS Datei enthält anscheinend Fehler
Danke euch beiden. Jetzt geht es.
MfG Florian :hi: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:03 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz