7 Font Size 56px


#1

Somebody, please help! I've been stuck here for over a day now. I'm trying to replace the 48px size font with the 56px size font, and it won't take my code.

https://www.codecademy.com/en/courses/make-a-website/lessons/closer-look-css/exercises/font-size?action=lesson_resume

Here is my code. Am I doing something wrong? Any help would be appreciated!


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: 56px;
 }


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


#2

You have to close set of rules for h1 selector with } before defining rules for selector h2.


#3

Thank you! You rock!!!


#4

You too! You're very welcome :slight_smile:


#5

Even i'm facing the same issue.


#6

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

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

h2 {
font-size: 56px;
}

.hero {font-family: 'Trebuchet MS', Helvetica, sans-serif;

padding: 250px 0;
margin: 30px;

}

p {

}

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


#7

You have an extra closing curly bracket } in your h1 selector.


#8

got it!! Thank you very much..


#9

Haha, no problem :slight_smile:


#10

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