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 trialramseydennis
4,530 PointsWhat's wrong with my CSS? Contact icons aren't appearing in the way they do in Nick's video -
The contact icons on my contact page aren't appearing on the left side of each contact option.
Here is a link to my code: https://w.trhou.se/v9l09lrsft
I am referring specifically to the Contact section of my main.css and contact.html.
Here is what I am referring to specifically:
HTML:
<section>
<h3>Contact Details</h3>
<ul class="contact-info">
<li class="phone"><a href="tel:444-5643">444-5643</a></li>
<li class="mail"><a href="mailto:ram@example.com">ram@example.com</a></li>
<li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=metrocollab">@metrocollab</a></li>
</ul>
</section>
CSS:
.contact-info {
display: block;
min-height: 20px;
background-repeat: no-repeat;
background-size: 20px 20px;
padding: 0 0 0 30px;
margin: 0 0 10px;
}
Thanks-
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi ramseydennis ,
Those styles were supposed to be applied to the links within the .contact-info list.
The selector should be .contact-info a
ramseydennis
4,530 Pointsramseydennis
4,530 PointsGreat, thank you Jason.