This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by blueywaka
over 10 years

All Paragraphs turn to cursive?

<!DOCTYPE html>
<html>
<head>
    <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    <title></title>
</head>
<body>
    <div>
        <p>I'm the first child!</p>
        <p>We're not.</p>
        <p>We're not.</p>
        <p>We're not.</p>
        <p>We're not.</p>
        <p>We're not.</p>
        <p>We're not.</p>			
    </div>
</body>
</html>

That was the HTML tab above.

div:first-child {

font-family: cursive;
}

That was the CSS Tab above.

When I typed in the CSS it made all paragraphs beneath the div cursive! Plz help

Answer 528cf2bb548c35c8be004ab1

1 vote

Permalink

/Add your CSS below!/ p:first-child{ font-family: Cursive; }

points
Submitted by Ashish Kularia
over 10 years

Answer 520eb51fabf8213409007b08

0 votes

Permalink

Never Mind Everyone! The problem was that it was suppose to be the p tag and not the div tag.

points
Submitted by blueywaka
over 10 years

1 comments

Roy over 10 years

As in, p:first-child, right? Good lesson to learn.

Answer 53209ebb7c82cabff1000094

0 votes

Permalink

div p:first-child { font-family: cursive; }

points
Submitted by Larissa Silva
about 10 years