Stuck on Making A Website 7/10, Instruction 3


#1



I'm stuck on Making A Website: font-size (7/10), Instruction 3


When I try to run this code, I get the message:
"Did you add a font-size of 2rem for the p selector in main.css?"


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

h1 {
	font-size: 32px;
  font-family: Palatino, 'Palatino Linotype', serif;
  color: rgb(27,108,4);
}

h2 {
	font-size: 56px;
}


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


p {
  font-size: 2rem;
}

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


#2

@b.dickinson,
Could you provide the HTML-code you are using in your idex.html


#3
Yeah sure, here it is:
    <!DOCTYPE html>
        <html>
        <head>
        	<title>Sprout</title>
        	<link rel="stylesheet" type="text/css" href="main.css"/>
        </head>
        <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>
        </html>

#4

A post was split to a new topic: I'm stuck on Making A Website: font-size


#5

Hopefully you've resolved this by now, and adding the html code here just wasn't necessary.
Are you using Chrome or Chromium? If you haven't gotten past this question and you are using one of those browsers, try to complete the exercise using Firefox. That has worked for several others including me. Good luck!


#6

Thank you, I have resolved this issue. But thanks for helping anyway


#7