Excercise 11 for Divs


#1

https://www.codecademy.com/en/courses/make-a-website/lessons/site-structure/exercises/add-div

The exercise simply tells you to read the code and click run when you understand the steps. I reset the code multiple times and clicked Run for step 1 and 2 successfully, but step 3 simply does nothing and then expects me to figure out what went wrong with the unaltered code.

<!DOCTYPE html>
<html>
<head>
  <title>Ollie Bike Sharing</title>
  <meta charset="utf-8"/>
  <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
  <h2>Ollie</h2>
  <ul>
    <li>sign up</li>
    <li>search bikes</li>
    <li>reserve a bike</li>
    <li>about us</li>
	</ul>
  <h1>Ollie Bike Sharing</h1>
  <h3>Share Your Pedals with the World.</h3>
  <p>Need a set of wheels while you're in town? Use Ollie to pair your perfect vacation with a stylish, affordable bike rental. Here is a <a href="cities.html">list</a> of cities where you can find us.</p>
  <video width="320" height="240" controls>
    <source src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-1/ollie.mp4" type="video/mp4">
  </video>
</body>
</html>

#2

Weird, step 1 and 2 tells you to add a container div and a nav div. Where are your divs? You're missing

<div class="container">
<!-- your content -->
    <div class="nav">
    <!-- your content-->
    </div<
    <div class="main">
    <!--your content-->
    </div>
</div>

The exercise doesn't tell you to just read the code and hit run. Read it more carefully.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.