FAQ: Boundaries and Space - Keep It Inline

This community-built FAQ covers the “Keep It Inline” exercise from the lesson “Boundaries and Space”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Make a Website

FAQs on the exercise Keep It Inline

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Hello! I have a question on the inline vs block display of the 7.Keep it inline lesson.

The HTML file for the nav bar reads:

<nav>
      <ul>
        <li><b>Arctic</b></a></li>
        <li>Alpine</a></li>
        <li>Antarctic</a></li>
      </ul>
      <div class="contact-btn"><a>Contact</a>
      </div>
    </nav>

So nav ul contains nav li.

In the CSS file nav ul is styled - display: inline; - but the results of the code is still a block display. Only when nav li is styled inline then the display changes. So, as nav ul contains nav li, why is that that the display doesn’t change to inline?

Thanks for your help!
Ilaria

1 Like

I am wondering the same thing now, a year after this was posted :slight_smile: