Problem at 6/8


#1


https://www.codecademy.com/courses/make-a-website/lessons/bootstrap/exercises/supporting-content


I am confused by the supporting content part. Yet I am able to move on to the next step but the created site does not look like the original one.The h2,h3 elements and a are like a whole element and don't display one under the other one. The other p elements are too close to the images, the margin is not right. Is my code not correct?

<body>
<header class="container">
  <div class="row">
    <h1 class="col-sm-4">Skillfair</h1>
    <nav class="col-sm-8 text-right">
      <p>newest</p>
      <p>catalogue</p>
      <p>contact</p>
    </nav>
  </div>
  <section class="jumbotron">
    <div class="container">
      <div class="row text-center">
        <h2>Homemade Goods</h2>
        <h3>This Year's Best</h3>
        <a class="btn btn-primary"
           href="#" role="button">View all</a>
    </div>
    </div>
   <section class="container">
     <div class="row">
       <figure class="col-sm-6">
         <p>kitchen</p>
         <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/kitchen.jpg"/>
       </figure>
       <figure class="col-sm-6">
         <p>woodwork</p>
         <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/woodwork.jpg"/>
       </figure>
     </div>
     <div class="row"> 
    <figure class="col-sm-6">
      <p>gifts</p>
      <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/gifts.jpg"/>
       </figure>
       <figure class="col-sm-6">
         <p>antiques</p>
         <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/antique.jpg"/>
       </figure>
     </div>
    </section>
  </section>


#2

Yep I found that I forgot to close my "header" between container and jumbotron and it solves all problems.


#3

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