• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

Texthintergrund ist im IE farbig, wieso ?

Ischtan

New member
Hallo,

ich habe ein Problem, welches im IE auftritt, und zwar ist der Texthintergrund dort farbig - ich weiss nur nicht wieso.

Hier der Link zur Seite

Und die ist meine css datei:

body {
font: large 150.00% Avantgarde, Arial, sans-serif;
color: black;font-variant:small-caps;font-weight:bold;letter-spacing:3pt;
}

a {
text-align:left;font-familiy:Avantgarde,Arial;
font-variant:small-caps;font-size:x-large;font-weight:bold;
color:#101030;text-decoration:none;
a:link { text-decoration:none; }



}

#normal { text-align: justify }
#normal { font-familiy:Helvetica,Arial }
#normal { font-variant:small-caps }
#normal { font-size:normal }
#normal { font-weight:bold }
#normal { letter-spacing:1pt }
#normal { margin-top:0px }
#normal { margin-left:20px }
#normal { margin-right:250px }

h1 {
font-size: 1.5em;
margin: 0.5em; padding: 0.3em;
text-align: center;
background-color: #fed;
border: 2px ridge gray;
}

h2 {
font-size: large;
text-align: center;
font-weight:bold;
letter-spacing:3pt;
margin-left:20px;
}

#news { text-align: justify; font-familiy:Helvetica,Arial; font-size:small; font-weight:normal;
margin-top:10px; margin-left:10px; margin-right:10px; margin-bottom: 10px; font-variant:small-caps;
}

#news {

#Navigation {
font-size: x-large;
margin: 0 0 1.2em; padding: 0;
margin-right:250px
}
#Navigation li {
list-style: none;
margin: 0; padding: 0.5em;
}
ul#Navigation a {
display: block;
padding: 0.2em;
font-weight: bold;
font-size: large;
}
ul#Navigation a:link {
color: white;
}
ul#Navigation a:visited {
color: white;
}
ul#Navigation a:hover {
color: white; background-color: #003060;
}
ul#Navigation a:active {
color: white; background-color: #006090;
}

#fixiert {
position: absolute;
top: 45pt; left: 15pt;

}
html>body #fixiert { /* nur fuer moderne Browser! */
position: fixed;
}
#fixiert img {
height: 6.8em; float: right;
}

#Inhalt {
margin-left: 22em; padding: 0 1em;
border-left: 2px ridge gray; border-top: 2px ridge gray;
}
* #Inhalt { /* versteckt vor Netscape 4 */
background-color: #ffffe0;
}

#Inhalt h2 {
font-size: 1.2em;
margin-left:20px;
color: maroon;
border-bottom: 1px solid silver;
}

#Inhalt #Fusszeile {
font-size: 0.9em;
margin: 200em 0 0; padding: 0.1em;
text-align: center;
background-color: #fed; border: 1px solid silver;
}

Ich hoffe mir kann jemand helfen.
 
Lösche doch aus Deiner CSS-Datei alle Background-Angaben.
Dann wirst Du ja sehen woran es liegt.
 
Das hatte ich mir auch gedacht.

Irgendwie scheint da aber etwas nicht zu funktionieren. Wenn ich die css Datei nicht einbinde ist das nicht mehr vorhanden, wenn ich in der css datei aber alles auskommentiere und ich somit eine leere css einbinde, ist hinter dem text immernoch ein einfarbiger hintergrund ?


Edit:
Problem gelöst, hatte in der css mit <!-- --> statt /**/ auskommentiert wodurch diese befehle trotzdem ausgeführt wurden
 
Zuletzt bearbeitet:
Hallo !

Ich habe mal eine Frage bezüglich diesem hier (oben aus der CSS-Datei entnommen)

#normal { text-align: justify }
#normal { font-familiy:Helvetica,Arial }
#normal { font-variant:small-caps }
#normal { font-size:normal }
#normal { font-weight:bold }
#normal { letter-spacing:1pt }
#normal { margin-top:0px }
#normal { margin-left:20px }
#normal { margin-right:250px }

Ist so eine Schreibweise zulässig? Oder hat das was mit der Vererbung zu tun?

Wäre dankbar für eine Antwort

Liebe Grüße
Liz
 
Moin!

Die Schreibweise ist zulässig, aber es gibt 2 Fehler. Die Zeilen:

#normal { font-familiy:Helvetica,Arial }
#normal { font-size:normal }
sollten eher so oder in der Art aussehen:
#normal { font-family:Helvetica,Arial,sans-serif }
#normal { font-size:10pt }

Gute Nacht - Pit
 
Oh , das font-size habe ich glatt übersehen.

Ist die Reihenfolge der Schriftarten nicht egal?

Kann man eigentlich gemischte Einheiten also px und em verwenden?

LiebGrüß
Liz
 
Moin!
Liz schrieb:
Ist die Reihenfolge der Schriftarten nicht egal?
Grundsätzlich ja, es sollte aber eine generische Schriftfamilie (hier: sans-serif) dabeisein, damit - wenn die Fonts die ansonsten aufgeführt sind auf dem client nicht installiert sind - der Browser sich aus der Familie einen Font rauspicken kann.

Einheiten mischen ist kein Problem.

Ahoi - Pit
 
Zurück
Oben