CSS CSS Layout CSS Layout Techniques Display

Larissa Ragland
Larissa Ragland
6,053 Points

Make sure you're selecting the class 'main-list'.

Help Please... nothing i try works for this one.

/* Complete the challenge by writing CSS below */

header {
  text-align: center;
.logo {
  width: 60px;
  margin: auto;

.main-list li {
  display: inline-block;
.main-list ul {
  display: inline-block;

<!DOCTYPE html>
    <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">
    <div class="container">
            <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>

1 Answer

Blueocto Ltd
Blueocto Ltd
3,233 Points

In your CSS you have;

.main-list ul {
  display: inline-block;

This won't work, because the UL is .main-list ... so you only need to declare;

.main-list {
display: inline-block;