[GastForen Web allgemein HTML und CSS / Stylesheets Problem mit CSS

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Themen
Beiträge
Moderatoren
Letzter Beitrag

Problem mit CSS

gogogirl17
Beiträge gesamt: 4

8. Okt 2004, 18:04
Beitrag # 1 von 2
Bewertung:
(1608 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
meine style.css (auf das wesentliche gekürzt)

/* ######################### Allgemein ######################### */
A:active {text-decoration: none; color: #0000FF; font-size: 10pt}
A:link {text-decoration: none; color: #0000FF; font-size: 10pt}
A:visited {text-decoration: none; color: #0000FF; font-size: 10pt}
A:hover {text-decoration: none; color: #FFFFFF; font-size: 10pt}

body {
margin-left: 30px;
margin-right: 30px;
scrollbar-face-color: #F9F1DA;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #FFFFFF;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-arrow-color: #AF9277;
scrollbar-track-color: #FFFFFF;
scrollbar-darkshadow-color: #555599;
background: #F9F1DA;
font-color: #AF9277;
font-family: Verdana, Tahoma, Arial;
font-size: 10pt;
}

/* ######################### Navigation ######################### */

#nav {
text-align: center;
font-size: 10px;
letter-spacing: 1px;
text-transform: normal;
font-weight: bold;
text-decoration: none;
}

.nav a:hover, active a {
background: #000000;
color: #000000;
}

.nav a, a {
display: block; *************
color: #8DA9C9;
}


das mit dem *********** gekennzeichneten möchte ich nur in der navigation haben wirkt sich jedoch auf alle links aus.

wie kann ich das umgehen bzw. warum ist das so?


gruß michael
X

Problem mit CSS

gogogirl17
Beiträge gesamt: 4

9. Okt 2004, 13:25
Beitrag # 2 von 2
Beitrag ID: #114435
Bewertung:
(1608 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Problem selbst gelöst

/* ######################### Navigation ######################### */
#mainnav {
text-align: center;
text-decoration: none;
text-transform: normal;
font-size: 10px;
font-weight: bold;
font-family: Verdana, Tahoma, Arial;
letter-spacing: 1px;

}

.nav a, #btn a {
color: #8DA9C9;
display: block;
}

.nav a:hover, #btn a:hover, #active a {
color: #6F778D;
background: #8DA9C9;

}

#btn {
color: #8DA9C9;
background: #E9EDF8;
display: block;

}

danke für eure Hilfe

gogogirl17


als Antwort auf: [#114349]