Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kris Byrum
32,636 Pointschild selector
I can not get this child selector to select the element that I want.
Could someone help and review this please?
#video-wrapper section:first-child {
margin-top: 20px;
}
<div id="video-wrapper">
<section>
<p>
<h3 id="video-title">Video</h3>
</p>
<p class="video-description">
<a href="http://www.youtube.com/watch?v=WrAn08BZAQc">Regional EMMY Award Winning Feature</a>
</p>
2 Answers
Juan Jose Cortes Guzman
7,894 PointsI'm assuming you want the paragraphs selected.
#video-wrapper section p:first-child {
margin-top: 20px;
}
Kris Byrum
32,636 PointsIf somethings wrong... its almost always the spelling and then the syntax with me :>
Thanks Juan for seeing that!
Juan Jose Cortes Guzman
7,894 PointsNo problem, glad to help!