"em"--which is the parent element


#1

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

according to the instructions, in the below bolded css codes, ".hero a font size is 1em, that is a size that equals to 1.0 times of the font-size of it’s parent codes. .–Which code/font-size in the above codes are the parent codes?

<body>
	<h1>Mystwood Publishers Ltd.</h1>
	<div class="hero">
		<h2>Sprout.</h2>
		<p>A book by J. Daniel Bedford</p>
		<a href="#">Read now.</a>
	</div>
	<p>&copy; Mystwood Publishers Limited</p>
</body>

h2 {
	font-size: 2rem;
}


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


p {

}

.hero a {
	color: #00FFAA;
	**font-size:1em;**
	text-decoration: none;



#2

The parent of hero above is BODY.


#4

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