Class


#1

What is wrong with this code:

<div class="fancy"></div>
        <img class="fancy"/>
        <p class="fancy"></p>

#2

Hi you should post your code both html & css

Edit:
in what Lesson are you?


#3

CSS Selectors, Lesson Eleven.


#4

SO you begin with the code like that?

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title>Result</title>
	</head>
	<body>
		<!--Add your HTML elements with the class "fancy" below!-->
		
	</body>
</html>

the the instruction says...

Create any number of HTML elements you like and give them the class "fancy". On the CSS tab, set .fancy to have a font-family of cursive and a color of #0000CD.
And you did it

<div class="fancy"></div>
 <img class="fancy"/>
<p class="fancy"></p>

in your <div> and <p> you should add some text.. for example

<div class="fancy">Hello</div>

Can you post your css code?


#5

.fancy {
font-family:cursive;
color:#0000CD;
}


#6

Di You add a text between The <div> and <p>?


#7

Yes, I did. It's correct now. Thanks wizmarco.