8. Set the font-family of the h3 elements


#1

Ok, so I am sure I am missing something, I'm getting myself confused. What am I missing? The first code is the css, the second is my html.
I keep getting an error code when I click "submit" that says, "oops, Set the font-family of the h3 elements inside <div class="learn-more">..</div> to 'Shift', sans-serif"

.nav a {
    color: #5a5a5a;
    font-size: 20px;
    font-weight: bold;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: uppercase;
    background color: #f7f7f7
}    
.jumbotron {
     background-image: url('https://goo.gl/04j7Nn');
     height: 500px;
     color: #fff;
     font-size: 20px;
     font-weight: bold;
}     
.jumbotron h1 {
      font-family: 'Shift', sans-serif;
}
  <div>
    <div class="learn-more"
  .learn-more h3 {
     font-family: 'Shift', sans-serif;
     font-weight: bold;
}
  </div>


<!DOCTYPE html>
 <html>
   <head>
 <link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
    </head>
    <link href="main.css" rel="stylesheet">
  </head>
    <body>
    <div class="nav">
      <div class="container">
        <ul>
          <li><a href="#">Airbnb logo</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">
                <h1>Find a place to stay.</h1>
        <p>Rent from people in over 34,000 cities and 192 countries.</p>
      </div>
    </div> 

    <div class="learn-more">
	  <div>
		<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>

8/10 Error
#2

I found a bunch of HTML code mixed in with your CSS:

  <div>
    <div class="learn-more"
  .learn-more h3 {
     font-family: 'Shift', sans-serif;
     font-weight: bold;
}
  </div>

You can't put those HTML tags in you CSS file - it just doesn't know what they mean.

Are you able to tell the difference between HTML code and CSS code yet? If you have questions, just ask.


#3

Ugh. I thought I understood. I guess I'm having a blond moment. Haha. So then where do I put the .learn-more h3 {? It goes on the css page, right?
I guess I'm supposed to maybe put the <div class...> on the html?
I'm so new to this, I'll get it eventually, huh? :smile:


#4

Yes you will!

You likely already have the <div class="learn-more"> in your HTML file. You probably wrote that in the previous unit, the one that was just about HTML.