Neighborhood Guides: Images 2


#1

<!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 class="pull-left">
          <li><a href="#">Name</a></li>
          <li><a href="#">Browse</a></li>
        </ul>
        <ul class="pull-right">
          <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"> 
        <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 wher 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> 
    
    <div class="container"> 
    <div class="col-md-4">
    <div class="thumbnail">
    <img src="http://goo.gl/Av1pac">
    </div>

    <div class="thumbnail">
     <img src="http://goo.gl/vw43v1">
    </div>
    </div>

    
    <div class="container">
     <div class="col-md-4">
    <div class="thumbnail">
     <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>
		  <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

There are two places where you've added an unexpected container in the middle of you neighborhood-guides div:

    <div class="container"> 
    <div class="col-md-4">

#3

dont i need the containers for the thumbnails?


#4


Uploading...


#5

In this project you don't need to put each thumbnail in a container.

Here is the overall plan that you are aiming for. You can see how the containers are meant to be placed.

  <!DOCTYPE html>
  <html>

    <head>
      ... links in here
    </head>

    <body>

      <div class="nav">
        <div class="container">
        ... your nav code goes in here
        </div>
      </div>

      <div class="jumbotron">
        <div class="container">
        ... your jumbotron code goes in here
        </div>
      </div>

      <div class="neighborhood-guides">
        <div class="container">
        ... your neighborhood-guides code goes in here
        </div>
      </div>

      <div class="learn-more">
        <div class="container">
          ... your learn-more code goes in here
        </div>
      </div>

    </body>
  </html>

#6

When i dont add a container it has my images in one row?


#7


#8

The col-md-4 divs are your column divs. They are what you are using to put your images into a grid.


#9

so where does the col-md-4 go?


#10

In the code that you posted above, your col-md-4 look like they are all in the correct places.


#11

so why am i getting a error?


#12

Now that you taken out those extra containers, show me all of your code again.


#14

How to post code in this forum.


#18

<!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 class="pull-left">
          <li><a href="#">Name</a></li>
          <li><a href="#">Browse</a></li>
        </ul>
        <ul class="pull-right">
          <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"> 
        <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 wher 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> 
    
   <div class="container"> 
    <div class="col-md-4">
    <div class="thumbnail">
    <img src="http://goo.gl/Av1pac">
    </div>

    <div class="thumbnail">
     <img src="http://goo.gl/vw43v1">
    </div>
    </div>

    
    <div class="container">
     <div class="col-md-4">
    <div class="thumbnail">
     <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>
		  <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>

#19

You still have two extra containers:


#20

so should i delete them?


#21

thank you it worked out