.5 Neighborhood-Guides: Grid


#1

I've been trying to arrange this coding however it tells me "Oops, try again. Add a

..
section to the page". Maybe I put in the wrong place, 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="Neighbourhood-Guides">
    <h2> Neighbourhood 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>
      <div class="container">
       <div class="row">
       <div class="col-md-4">
        <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="learn-more">
	  <div class="container">
		<div>
	      <div>
			<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>
			<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>
			<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

Keeping your matching open/close tags at the same indent level will help you see what you are building.

This page you are making is composed of 4 major divs. The nav, jumbotron, neighborhood-guides and learn-more. At the end of exercise 4/14 you would have had the nav, jumbotron and learn-more in place and in 5/14 you are adding neighborhood-guides. It goes between jumbotron and learn-more.

Here is the overall plan that you are aiming for:

  <!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>

:green_heart: How to post code in this forum.


#3

Sorry to bother you but I've been trying and made some changes and now the error message I get is "Oops, try again. Add a <div class="col-md-4">..</div> in the <div class="row">..</div>.". 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">
      
      
       <div class="row">
       <div class="col-md-4">
        <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>

<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-mod-4"></div>
<div class="col-mod-4"></div>
<div class="col-mod-4"></div>


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

#4

Finding this row and column div in your nav div is unexpected. You should remove those.

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

You neighborhood-guides div is looking much better! You still need /div tags for your row, the container and neighborhood-guides itself.

It is a good habit to type your closing tag at the same time as you type your open tag so that you don't forget about it.


#5

That helped Thank You