Learn HTML & CSS: Part 1 (4. fallback fonts)


#1

Could someone please help me?

Learn HTML & CSS: Part 1 (4. Fallback Fonts)

Its saying "Did you add the fallback fonts to the main heading?

body {
/* Old browsers */
background: #141E30;
/* Chrome 10-25, Safari 5.1-6 */
background: -webkit-linear-gradient(-45deg, #35577D, #141E30);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(-45deg, #35577D, #141E30);
margin: 0;
padding: 0;
}

h1 {
color: #FFF;
font-family: Georgia, Garamond, serif;
font-size: 32px;
padding-top: 100px;
text-align: left;
width: 60%;
}

h2 {
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
color: rgba(255, 255, 255, 0.5);
font-weight: 100;
font-family: Georgia, Garamond, serif;
font-size: 22px;
line-height: 24px;
padding-bottom: 30px;
text-align: left;
width: 70%;
}

p {
color: AliceBlue;
font-family: Helvetica, Arial, sans-serif;
line-height: 1em;
text-align: left;
width: 100%;
}

.byline {
color: rgba(255, 255, 255, 0.5);
float: left;
font-family: 'Roboto', sans-serif;
font-weight: 100;
font-size: 14px;
padding-left: 10px;
text-transform: uppercase;
}

.caption {
background-color: rgba(0, 0, 0, 0.6);
color: rgba(255, 255, 255, 0.65);
display: block;
font-family: 'Playfair Display', serif;
font-size: 14px;
font-style: italic;
line-height: 14px;
margin-left: 20px;
padding: 10px;
position: relative;
top: 80%;
width: 60%;
}

.content {
padding: 40px;
}

.image {
background-image: url("https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-4/htmlcss1-img_soccer.jpeg");
background-size: cover;
background-position: center;
height: 300px;
}

.writer-img {
-webkit-box-shadow: 5px 0px 5px 0px rgba(0, 0, 50, 0.97);
-moz-box-shadow: 5px 0px 5px 0px rgba(0, 0, 50, 0.97);
box-shadow: 5px 0px 5px 0px rgba(0, 0, 50, 0.97);
float: left;
width: 50px;
}


#2

Having that problem too, really annoying. I fixed that issue in another exercise by doing it in internet explorer, but now I'm stuck at the "font-weight" exercise and can't get it done, even though I tried the "get code" option in all of my installed browsers. Let's hope it gets fixed soon.


#3

i get the same problem too, i accept the "get code" help and nothing happends... stuck here for 5 days... :frowning: really annoying exercise.


#4

How did you fix the code?


#5

You're not alone, thought I was missing something but even after accepting get code I keep on getting an error message


#6

I have conclude now the course by changing the browser to Chrome :slight_smile:


#7

I have been stuck at this one for almost a week now. There is a bug with this page.

My code was exactly correct, but it says it was wrong. Fine, even if my code was wrong (which I'm 100% sure it wasn't) it still won't accept it after I click the accept code button. I even erased all the code and threw in a jumble of letters to see if the "get code" button was broken, it got the code, still thinks it's wrong.

Other than that bug, I must say that Codecademy is one of the best things to teach code I have ever found.


#8

Change the "h1" to "p" only in the index.html


#9

having the same problem. any fix yet ?


#10

Do like i did.. Change the "h1" to "p" only in the index.html


#11

Problem was solved when I switched from Firefox 49.0.2 to Chrome. Wouldn't really call it a "solution" but it allowed me to complete my coursework :slight_smile:


#12

This worked... but why?


#13

I have same problem, don't know what to do...


#15

It worked , thanks a lot


#16

I was stuck on this, but then I pressed run a lot of times and it worked. Try this code.

body {
/* Old browsers */
background: #141E30;
/* Chrome 10-25, Safari 5.1-6 */
background: -webkit-linear-gradient(-45deg, #35577D, #141E30);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(-45deg, #35577D, #141E30);
margin: 0;
padding: 0;
}

h1 {
color: #FFF;
font-family: Georgia, Garamond, serif;
font-size: 32px;
padding-top: 100px;
text-align: left;
width: 60%;
}

h2 {
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
color: rgba(255, 255, 255, 0.5);
font-weight: 100;
font-family: Georgia, Garamond, serif;
font-size: 22px;
line-height: 24px;
padding-bottom: 30px;
text-align: left;
width: 70%;
}

p {
color: AliceBlue;
font-family: Helvetica, Arial, sans-serif;
line-height: 1em;
text-align: left;
width: 100%;
}

.byline {
color: rgba(255, 255, 255, 0.5);
float: left;
font-family: 'Roboto', sans-serif;
font-weight: 100;
font-size: 14px;
padding-left: 10px;
text-transform: uppercase;
}

.caption {
background-color: rgba(0, 0, 0, 0.6);
color: rgba(255, 255, 255, 0.65);
display: block;
font-family: 'Playfair Display', serif;
font-size: 14px;
font-style: italic;
line-height: 14px;
margin-left: 20px;
padding: 10px;
position: relative;
top: 80%;
width: 60%;
}

.content {
padding: 40px;
}

.image {
background-image: url("https://s3.amazonaws.com/codecademy-content/courses/web-101/unit-4/htmlcss1-img_soccer.jpeg");
background-size: cover;
background-position: center;
height: 300px;
}

.writer-img {
-webkit-box-shadow: 5px 0px 5px 0px rgba(0, 0, 50, 0.97);
-moz-box-shadow: 5px 0px 5px 0px rgba(0, 0, 50, 0.97);
box-shadow: 5px 0px 5px 0px rgba(0, 0, 50, 0.97);
float: left;
width: 50px;
}


#17

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.