• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Schriftfarbe ändern?

Loana

Mitglied
Hallo liebes Forum!
Kann mir mal jemand sagen wie und wo ich die im CSS die Schriftfarbe ändere?
Bitte nicht auslachen ich versuche es schon länger und nie klappt es..ich poste mal die CSS datei mit...Es wäre nett wenn ihr mich beraten könntet ...danke schonmal

Code:
 * {
padding : 0;
margin : 0;
}
html {
height : 100%;
margin-bottom : 1px;
}
body {
background-color : #610361;
color : black;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : small;
}
div#wrapper {
background-color : white;
color : black;
width : 960px;
margin-top : 10px;
margin-right : auto;
margin-bottom : 10px;
margin-left : auto;
}
div#kopfbereich {
background-color : #faf4ff;
color : black;
padding-top : 0px;
padding-right : 0px;
padding-bottom : 0;
padding-left : 0px;
}
#kopfbereich p {
  padding: 5px 0 5px 0;
  margin-bottom: 0; /* war 1em */
}





div#textbereich {
background-color:#faf4ff;

padding-top : 20px;
padding-right : 10px;
padding-bottom : 20px;
padding-left : 5px;
}
div#fussbereich {
background-color:#faf4ff;
padding-top : 10px;
padding-right : 20px;
padding-bottom : 20px;
padding-left : 20px;
border-top : 1px solid #610361;
margin-top : 0;
}
img#logo {
background-color : white;
color : black;
padding : 20px;
border : 10px solid #ffffff;
}
h1 {
font-size : 150%;
}
h2 {
font-size : 130%;
}
address {
text-align : center;
font-size : 80%;
font-style : normal;
letter-spacing : 2px;
line-height : 1.5;
}
a {
text-decoration : none;
}
a:link {
color : #450345;
}
a:visited {
color : #ff0000;
}
a:hover, a:focus {
border-bottom : 1px solid #d90000;
}
a:active {
background-color : #d90000;
color : white;
}
#textbereich a {
border-bottom : 1px dotted #610361;
}
#textbereich a:hover, #textbereich a:focus {
border-bottom : 1px solid #d90000;
}
 
Werbung:
Hallo Loana,
wo genau soll die Farbe geändert werden?

du hast einmal im

body { background-color : #610361; color : black; <----------------------------------


und einmal

div#wrapper { background-color : white; color : black; <----------------------------------

und einmal

div#kopfbereich { background-color : #faf4ff; color : black; <----------------------------------
und einmal

img#logo { background-color : white; color : black;<----------------------------------



Da ich nicht weiß welche Farbe du ändern willst habe ich die die oberen Bereiche angezeigt..

Hier kannst du einen Farbcode mit dem black ersetzen.

Hex-Farbcode-Tabelle
 
Danke erstamal für die Anwort...ich möchte für die gesamte Homepage für die Schrift die Farbe #610361; das ist die Farbe vom Wrapper...ich denke das würde gut ausschauen ich habs schon probiert das black zu ersetzen-aber leider hats nicht geklappt-alledings habe ich nur im Body versucht
 
Zuletzt bearbeitet:
Werbung:
Der body Selektor inklusive CSS Eigenschaften steht am Anfang, danach folgen Selektoren, welche die color Eigenschaft im Body wieder überschrieben. Wenn du nur im Body die color Eigenschaft verwendest und sonst in keinem einzigen Selektor, wird die Schriftfarbe auch nur noch in #610361 dargestellt.

Grüße
Nico
 
Also sollte ich alle *black* überschreiben damit ich meine Wunschfarbe auf der ganzen HP habe?wennich das richtig verstanden habe??
 
Werbung:
Zurück
Oben