Class fancy not working


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/courses/web-beginner-en-WF0CF/4/3?curriculum_id=50579fb998b470000202dc8b
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

i created fancy class in css and applied to both h3 and p tag but it says you forgot to apply h3 class fancy



<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML below!-->
	<div class="fancy">
		<h3>Heading three</h3>
		<p>Paragraph</p>
	</div>
	</body>
</html>



#2

remove the div section and apply

What you did is that you have applied fancy class to the div section which is a block level element and if you want to specifically style your h3 and paragraph, you have to do the inline styling.


#3

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