html - One line of text refuses to change color -
html
I was doing a project to create a Google homepage in HTML / CSS and for the most part it was without any reason Coming out fine, I can not get the text inside "sign up" to change the I call in these lines in CSS. I added it to As you were pointing to other commentators, you just have a different CSS rule for nested anchor tags ( color .
& lt; Div id = "content" & gt; & Lt; Div id = "navbar" & gt; & Lt; Ul & gt; & Lt; Li id = "signin" & gt; & Lt; A href = "https: // account ..." & gt; Sign in & lt; / A & gt; & Lt; / li & gt;
#navbar {text-decoration: none; Width: 200px; Color: # 4c4c4c; Font-size: 14px; } # Signin {background color: blue; Font-weight: 800; Color: #ffffff! Important; Padding: 7px 12px; }
! Important was thinking that it would change, but did not do anything. It is also worth noting that this is just some code that has other items on the nav bar which are all the same true colors. I got the
background-color to replace, but the actual text is not
color .
# signign a ) is required.
#navbar a {text-decoration: none; Width: 200px; Color: # 4c4c4c; Font-size: 14px; } # Signin {background color: blue; Font-weight: 800; Color: #ffffff; Padding: 7px 12px; } # Signin a {color: #ffffff; }
& lt; Div id = "content" & gt; & Lt; Div id = "navbar" & gt; & Lt; Ul & gt; & Lt; Li id = "signin" & gt; & Lt; A href = "https: // account ..." & gt; Sign in & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt;
Comments
Post a Comment