
Marquis Briggs
4,793 PointsChange the display of .main-list to the display value that generates a block element that doesn't take up a full line.
What do I have wrong here ?
/* Complete the challenge by writing CSS below */
header {
text-align: center;
}
.logo {
width: 60px;
margin: auto;
}
.main-nav {
display: inline-block;
}
.main-nav li {
display: inline-block; }
<!DOCTYPE html>
<html>
<head>
<title>CSS Layout</title>
<link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<img class="logo" src="city-logo.svg" alt="An illustration of a building">
<ul class="main-list">
<li><a href="#">Donuts</a></li>
<li><a href="#">Tea</a></li>
<li><a href="#">Coffee</a></li>
</ul>
</header>
</div>
</body>
</html>
1 Answer

Rabin Gharti Magar
Front End Web Development Techdegree Graduate 19,575 PointsHey Marquis Briggs,
There is a tiny error in your code. The class name should be .main-list
instead of .main-nav
.
.main-list li {
display: inline-block;
}
.main-list{
display: inline-block;
}
Hope this helps!