This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by RP
over 9 years

2/10 Set the color of the a elements inside <div class="nav">..</div> to #5a5a5a

I have written this correctly but it keeps giving the error that I need to add the color: #5a5a5a. I have even copied and pasted the code from the hints and it gives me the error also. Anyone have a solution to this bug?

 <body>
    <div class="nav">
    .nav a {
  color: #5a5a5a;
  font-size: 11px;
  font-weight: bold;
  padding-bottom: 14px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 14px;
  text-transform: uppercase;
}
      <div class="container">
        <ul>
          <li><a href="#">Airbnb logo</a></li>
          <

Answer 53d0703b8c1ccc31b9000953

0 votes

Permalink

You need to move your CSS rule to the main.css file. You can read about how to do that over here http://www.codecademy.com/forum_questions/537d6259282ae3e1690008eb

points
Submitted by Judy
over 9 years

Answer 53d937c9282ae32ed70001d3

0 votes

Permalink

AlbionsRefuge is correct. Inside your index.html tab you should have

<div class="nav">
    <div class="container">
        <ul>
            <li><a href="#">Airbnb logo</a></li>

Then inside the main.css tab you should have

.nav a {
color: #5a5a5a;
font-size: 11px;
padding-bottom: 14px;
padding-left: 10px;
padding-right: 10px;
padding-top: 14px;
text-transform: uppercase;
}

Did this help?

points
over 9 years