185
rated 0 times
[
186]
[
1]
/ answers: 1 / hits: 16920
/ 11 Years ago, thu, july 11, 2013, 12:00:00
I've been struggling with finding a way to only display the first child of my div and hide all the rest. Can this be done purely in css or do I have to involve some Javascript?
So, how can I get this to only display first p-tag?
<div id=test1>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
<p>Lorem ipsum</p>
</div>
More From » css