Why first paragraph not taking this style p:first-child?
Posted
by metal-gear-solid
on Stack Overflow
See other posts from Stack Overflow
or by metal-gear-solid
Published on 2010-04-24T17:54:21Z
Indexed on
2010/04/24
18:03 UTC
Read the original article
Hit count: 143
css
Why first paragraph not taking this style p:first-child
#content p:first-child {color:#4C4C4C;
font-size:1.2em;
font-weight:bold;
line-height:1.8;
margin-bottom:0.5em;}
<div id="content">
<h1>Welcome</h1>
<p>first paragraph</p>
<p>second paragraph</p>
<p>third paragraph</p>
</div>
How to select first paragraph from css?
© Stack Overflow or respective owner