Make Website / Exercice 6/10 > CSS class selector


#1

I'dont understand my mistake in this exercice.

This is my code

.hero {
font-family:'Trebuchet MS',Helvetica, sans-serif;
padding: 250px 0;
margin: 30px;
}

This is the message "error" : Did you add a font-family of "Trebuchet MS" with Helvetica and sans-serif as fallbacks?
Run

I'm lost can you Help me ?


#2

Same problem here. Im sure there is a bug in the website and we all have done it in main.css (zainab). Please fix the bug or kindly give the correct code because I have looked at each single thing.


#3

Try this code out. I restarted the exercise and this worked
body {
height: 100%;
margin: 0;
text-align: center;
width: 100%;
}

h1 { font-family: Palatino,'Palatino Linotype', serif;
font-size: 32px;
color: rgb(46,105,163);
}

h2
{
font-size: 32px;
}

.hero {
font-family:'Trebuchet MS',Helvetica, sans-serif;
padding: 250px 0;
margin: 30px;
}

p {

}

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


#4

Thanks for that. It worked for me. I also was stuck on this part of the lesson. I would still like to know if it's a bug or if I was doing something wrong. When I clicked on "Get Code" nothing would happen. I'm using Safari (no ad blocking or anything).


#5

This website has probably bugs because im stuck on the other exercise as well and I hope they fix it because I really like learning programming


#6

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