Stuck on Make a website: CSS Styling ( URGENT!)


#1

There is an error message appeared show that

"Oops, try again. Set the font-family of the h1 element inside <div class="jumbotron">..</div> to 'Shift', sans-serif"

In Index.html

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

While in main.css

.jumbotron h1 {
    color:  #fff;
    font-family:'Shift',sans-serif;
    font-size: 48px;
    font-weight: bold;

Can i know what is the problem?


#2

Hi eandvongmail_com,

Do you also have a link to your main.css file in your index.html?


#3

main css i did like this
.nav a {
color: #5a5a5a;
font-size: 24px;
}

but the result

Oops, try again. Set the font-weight to bold


#4

Hi boardwhiz03054,

It is asking you to set font-weight to bold, I don't see that setting in your code.

I'm not even sure if you and eandvongmail_com are talking about the same exercise!

Please give me more details.


#5

In 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-family:'Shift',sans-serif;
font-size: 48px;
font-weight: bold;
}

.jumbotron {
color: #fff;
font-size: 20px;
}


#6

Hi,

this code looks right, it might be an issue with your browser. Could you try clearing the cache or switching browsers quickly to see if that fixes it

Thanks

Keith


#7

hi keith, its not working :confused:


#8

Hi,

the only other thing I can think of is have you put the font CSS under your main.css? So your head should look like this -

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

If that doesnt work and you have tried a different browser then Im really not sure what it could be unfortunately

Thanks

Keith