Neighbourhood Guides: Images 2 - Add another thumbnail?!?!


#1

WHY DOESN’T THIS WORK? Please help!

<!DOCTYPE html>
<html>

  <head>
    <link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
    
    <link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">
    <link rel="stylesheet" href="main.css">
    
  </head>

  <body>
    <div class="nav">
      <div class="container">
        <ul>
          <li><a href="#">Name</a></li>
          <li><a href="#">Browse</a></li>
        </ul>
        <ul>
          <li><a href="#">Sign Up</a></li>
          <li><a href="#">Log In</a></li>
          <li><a href="#">Help</a></li>
        </ul>
      </div>
    </div>

    <div class="jumbotron">
      <div class="container">
      <div class="neighborhood-guides">Enjoy</div>
        <h1>Find a place to stay.</h1>
        <p>Rent from people in over 34,000 cities and 192 countries.</p>
        <a href="#">Learn More</a>
      </div>
    </div> 
<div class="neighborhood-guides">
  <div class="container">
    <h2>Neighborhood Guides</h2>
    <p>Not sure where to stay? We've created neighborhood guides for cities all around the world.</p>

    <div class="row">
      <div class="col-md-4">
      <div class="thumbnail">
      <img src="http://goo.gl/0sX3jq">
      </div>
      
      <div class="thumbnail">
      <img src="http://goo.gl/an2HXY">
      </div>

      <div class="col-md-4">
      <div class="thumbnail">
      <img src="http://goo.gl/Av1pac">
      </div>
      </div>
      
      <div class="thumbnails">
      <img src="http://goo.gl/vw43v1">
      </div>

      <div class="col-md-4">
      <div class="thumbnails">
      <img src="http://goo.gl/0Kd7UO">
      </div>
      </div>
    </div>
  </div>
</div>
<div class="learn-more">
      <div class="container">

        <div class="row">

          <div class="col-md-4"> 
            <h3>Travel</h3>
            <p>From apartments and rooms to treehouses and boats: stay in unique spaces in 192 countries.</p>
            <p><a href="#">See how to travel on Airbnb</a></p>
          </div>

          <div class="col-md-4"> 
            <h3>Host</h3>
            <p>Renting out your unused space could pay your bills or fund your next vacation.</p>
            <p><a href="#">Learn more about hosting</a></p>
          </div>

          <div class="col-md-4"> 
            <h3>Trust and Safety</h3>
            <p>From Verified ID to our worldwide customer support team, we've got your back.</p>
            <p><a href="#">Learn about trust at Airbnb</a></p>
          </div>

        </div>
      </div>
    </div>

  </body>
</html>

#2

This bit of code has a problem:

    <div class="jumbotron">
      <div class="container">
      <div class="neighborhood-guides">Enjoy</div>

It looks like you started to put your neighborhood-guides div inside of your jumbotron div.

In your real neighborhood-guides div, that's the one further down,

  • your first column doesn't have a closing tag
  • your second column has a closing tag but it is between the two thumbnails

#5

Okay, well first, you should just delete this whole line:

<div class="neighborhood-guides">Enjoy</div>

Here is the code for your first two columns. I have lined up your matching pairs of open/close tags and left some comments for you.

<div class="col-md-4">
  <div class="thumbnail">
    <img src="http://goo.gl/0sX3jq">
  </div> <!-- closes thumbnail -->
  <div class="thumbnail">
    <img src="http://goo.gl/an2HXY">
  </div>  <!-- closes thumbnail -->
<!-- closing tag for column should be here -->  

<div class="col-md-4">
  <div class="thumbnail"> 
    <img src="http://goo.gl/Av1pac">
  </div> <!-- closes thumbnail -->
</div> <!-- closes column too soom -->

  <div class="thumbnails">    
    <img src="http://goo.gl/vw43v1">
  </div> <!-- closes thumbnail -->
<!-- closing tag for column should be here -->

#6

That’s done. It still doesn’t work though.


#7

Okay, good. Now show me all of your HTML code again so that I can see the changes.


#10


#11

Hi,

in line 56 you got a typo error,correct to "thumbnail" not "thumbnails" as you did, i hope it helps. I'm in the
same stage as you and i'm stuck too in the third column and i'm even don't know my error yet.
:smile:


#13

Hi you can have a look to my code it's working now