I wonder why it only changes the font-size of the anchor?


#1




I knew the instruction is to modify the font-size of .hero a, but I'd like to know what if I modify the font-size of .hero. And the result is only the font size of the anchor would be changed, why is that?


Why the p and h2 didn't change when I modify the font-size of .hero{ font-size to 5em?


Replace this line with your code. 

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


#2

I can't see the HTML, but I'm assuming it's because they're not included when selecting the class "hero". That just means that their class isn't set to hero.


#3

I'm not getting this too..
Also, witch element is the ".hero a" parent? I've set it to 1em and all fonts for helvetica so it should become the same size of something on the page, but its just different from everything


#4

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