HTML Navigation Bar Text Farbe ändern?
hey leude
Ich habe meine eigene Website gemacht, jetzt hab ich ein Problem ich möchte die Navigation bar den text dort in schwarz färben... habe schon bei css im header, nav, nav li probiert
CSS
.social-icons {
text-align: center;
}
.social-icons li {
display:inline-block;
list-style-type:none;
-webkit-user-select:none;
-moz-user-select:none;
}
.social-icons li a {
border-bottom: none;
}
.social-icons li img {
width:70px;
height:70px;
margin-right: 20px;
}
#wrapper {
width: 960px;
margin: center;
font-family: arial, sans-serif
}
}
body {
background-color: #8db6cd;
}
header {
padding-top: 10px;
padding-bottom: 10px;
height: 125px;
text-align: center;
text-color: black;
}
nav {
text-align: center;
text-color: black;
}
nav li {
display: inline;
margin-right: 40px;
text-color: black;
}
a {
color: #777;
text-decoration: none;
font-family: arial, sans-serif
}
section {
width: 620px;
height: 530px;
float: left;
background: lightgray;
border: 1px solid #000000;
}
aside {
width: 310px;
height: 550px;
float: right;
background: darkorange;
border: 1px solid #000000;
}
5 Antworten
}
}
Kann es sein dass du da eine Klammer zuviel hast?
Und müsste es nicht color heißen anstatt text-color
https://wiki.selfhtml.org/wiki/CSS/Eigenschaften/Textformatierung/color
wenn du ein List item einfärben willst wenn man drüber geht, nimm Zb.
a:hover{
color: #777;
}
wenn du nur eine div class oder Zb. alle <h3> auf der einen Seite verändern willst mache:
h3{
color: #777;
}
Nicht text-color sondern einfach nur color.
color: farbe;
Kopier doch bitte deinen Code hier rein. Mit der "Quelltext </>"-Funktion.
Wenn du die Schriftfarbe setzen möchtest, nimm das Property color. Ein Property text-color gibt es nicht.