CSS Make a Website:Class Selector(6)


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/courses/make-a-website/lessons/closer-look-css/exercises/class-selectors?action=lesson_resume&link_content_target=interstitial_lesson
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.
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: 32px;
}

.hero {
padding: 250px 0;
margin: 30px;

font-family: ‘Trebuchet MS’ , Helvetica,sans-serif;
}

p {

}

.hero a {
color: #00FFAA;
font-size: 24px;
text-decoration: none;
}

<do not remove the three backticks above>

trying to change the font-family of the .hero.
I keep getting an error message.

#2

This might not be it at all but if you’re using Chrome, it often does not understand when you try to change the text-decoration to none and throws an error message. I notice that in your .hero a the text-decoration is none. Did you just have to change that too? If that’s the case, try to do it in Firefox instead. If that’s not the issue, maybe it doesn’t like that you have a vacant p styling there?


#3

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