Lesson 8/10 make a website


#1


https://www.codecademy.com/en/courses/make-a-website/lessons/closer-look-css/exercises/background-image?action=resume

I am stuck, I did all the changes but the lesson dont recognize and dont let me move forward, any ideas?
i am using Safari at my home computer


Replace this line with your code. Do not remove the backticks.


#2

Hey,

You changed the color for h2 you need to hang the color for .hero


#3

Thanks but almost there... I restarted the lesson and changed the .hero as it was my mistake, but it wont let me go on anyway...


#4

Paste in your updated code


#5

body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}

h1 {
font-size: 32px;
font-family: Palatino, 'Palatino Linotype', serif;
color: rgb(121,149,117);
}

h2 {
font-size: 56px; color:#ffffff
}

.hero {
padding: 250px 0;
margin: 30px;
font-family: 'Trebuchet MS', Helvetica, sans-serif; background-image: url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg");background-size: cover
}

p {
font-size: 2rem;color:#ffffff
}

.hero a {
color: #ffffff;
font-size: 1.25em;
text-decoration: none;
}


#6

You need to add color: #ffffff; to .hero


#7

it worked but I could not see any diference... sorry what changed?
but THANK YOU


#8

You didn't see any change as you had already changed the paragraph and h2 header to white using the p and h2 selector,

the lesson wanted you to change by changing the color via the class hero thus it didn't work the first time


#9

Ok I think I get it! Thanks again


#10

You're welcome :green_heart:

Happy Learning :slightly_smiling:
Happy coding !

What inspired you to learn programming/coding?
Join the discussion


#12