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 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;   

I call in these lines in CSS.

  #navbar {text-decoration: none; Width: 200px; Color: # 4c4c4c; Font-size: 14px; } # Signin {background color: blue; Font-weight: 800; Color: #ffffff! Important; Padding: 7px 12px; }   

I added it to ! 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 .

As you were pointing to other commentators, you just have a different CSS rule for nested anchor tags ( # 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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -