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
Konrad Pilch
2,435 PointsSelect 2nd child
HI,
HOw can i selectthe proper way the second span? without writing the name of the span.
<div class="top-header">
<div class="container">
<div class="header-contact-details">
<span class="glyphicon glyphicon-phone">07938 937732</span>
<span class="glyphicon glyphicon-envelope">Email: lotus_hairandbeauty@hotmail.co.uk</span>
<span class="button-book-online pull-right">Book Online</span>
</div><!-- /header-contact-deatails-->
</div><!-- /container -->
</div><!-- top-header -->
I did try to select it with the child HTML,but it doesnt work and i wantto select it the proper way . And i dont want to select the span.
1 Answer
Jeff Lemay
14,268 Points.header-contact-details span:nth-child(2) {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
padding: 0 10px;
}
Konrad Pilch
2,435 PointsKonrad Pilch
2,435 PointsOf course :D
Thank you.