Tach,
ich hab ein kleines CSS Problem. Und zwar möchte ich meine Fehler vom Text anders gestalten.
In meiner CSS-Datei hab ich es so definiert:
Code:
.error {
color: #A5241C;
font-style: italic;
font-size: 11px;
}
und in meiner PHP-Datei dann dementsprechend <p class="error">bla</p>.
Leider macht er das nur im MSIE und in meinem FF (v1.5.0.4) bleibt der Text ganz normal. Die anderen Eigenschaften in meiner CSS-Datei funktionieren zumindestens. Ich poste sie auch gleich am Ende, vielleicht liegt da ja irgendwo derWurm begraben, ich zumindestens fand keinen Fehler und bin auch völlig ratlos. Jemand von euch Rat?
Hier meine CSS-Datei:
Code:
body.main {
margin-top: 7;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
}
body.frame {
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 6;
}
body,table {
color: #4E4B49;
font-size: 12px;
font-family: Trebuchet MS, Arial, Tahoma;
font-weight: normal;
}
a:link {
color: #4E4B49;
text-decoration: none;
}
a:visited {
color: #4E4B49;
text-decoration: none;
}
a:hover {
color: #92C8E2;
text-decoration: none;
}
a:active {
color: #4E4B49;
text-decoration: none;
}
.header {
font-size: 11px;
}
a:link.header {
color: #4E4B49;
text-decoration: none;
}
a:visited.header {
color: #4E4B49;
text-decoration: none;
}
a:hover.header {
color: #FFFFFF;
text-decoration: none;
}
a:active.header {
color: #4E4B49;
text-decoration: none;
}
a:link.vorteile {
color: #4E4B49;
text-decoration: none;
}
a:visited.vorteile {
color: #4E4B49;
text-decoration: none;
}
a:hover.vorteile {
color: #ECAD12;
text-decoration: none;
}
a:active.vorteile {
color: #4E4B49;
text-decoration: none;
font-weight: bold;
}
.menu {
color: #ECAD12;
font-size: 13px;
font-weight: normal;
.gross {
font-size: 15px;
}
.klein {
font-size: 11px;
}
.msg {
color: #A5241C;
font-weight: bold;
font-size: 11px;
}
.error {
color: #A5241C;
font-style: italic;
font-size: 11px;
}
input.login {
color: #4E4B49;
font-size: 8pt;
font-family: Trebuchet MS;
border: 0px solid #949393;
}
.button {
color: #ECAD12;
font-size: 13px;
font-weight: normal;
}
(bei dem .msg bin ich mir nicht sicher ob das funktioniert, wurde noch nicht verwendet in meinem Projekt).
Danke euch vielmals für eure Bemühungen.
EDIT:
Mit .msg gehts auch nicht aber mit .menu. Keine Ahnung warum. Ihr?