"em"--which is the parent element



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?

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

h2 {
	font-size: 2rem;

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

p {


.hero a {
	color: #00FFAA;
	text-decoration: none;


The parent of hero above is BODY.


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