02/8 Font-family: 'shift', sans-serif DOESNT WORK!


#1

Hey ,
I got stuck at the 02 section in the 8 part of CSS.
I wrote** font-family: 'shift', sans-serif**
And it doesnt works.
I tried to read some of the advices in the forum and nothing of the suggestions did not help me.
I use Chrome browser.

English is not my language, so please try to be as much clear.

This code - HTML and CSS wrote:

index.html

<!DOCTYPE html>
<html>
  <head>
    <link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.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>

main.css

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

#2

In your main.css file you have an extra }.


#3

i fixed it and it still dont work...


#4

You have deleted the link to your main.css file. Without that, your HTML file doesn't know that your CSS file exists.


#5

can you write for me the link ? and in what line should i wrote it ?
im sorry if im annoying. its just that is my first time i try and i just dont get it.

in index,html i have:

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

is that write?


#6

This it what is missing:

<link href="main.css" rel="stylesheet">

Put it just below your shift.css link.


#7

it works!! Thank you so much !