This forum is now read-only. Please use our new forums! Go to forums
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
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
Answer 53d937c9282ae32ed70001d3
0 votes
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?
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency