Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [CSS] CSS Datei enthält anscheinend Fehler (https://www.delphipraxis.net/11278-%5Bcss%5D-css-datei-enthaelt-anscheinend-fehler.html)

flomei 3. Nov 2003 14:44


[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:
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; }
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.
So wie ich das gemacht habe steht es auch in SelfHTML...

Danke im Vorraus!

MfG Florian :hi:

sakura 3. Nov 2003 14:54

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:
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;
}
...:cat:...

Daniel B 3. Nov 2003 14:55

Re: [CSS] CSS Datei enthält anscheinend Fehler
 
Code:
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;}
Das ist Validiert, also Fehlerfrei. Die Reihenfolge muss auch so sein, aber das hast Du ja glaub ich.

flomei 3. Nov 2003 14:59

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 14:23 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz