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 trialAli Al-Bahrani
17,584 Pointsset font-size to 0.9em in CSS chapter
i m trying to set the font size in unordered list in the class contact-info to 0.9em as the following and didn't work :
.contact-info ul {
font-size: 0.9em;
}
please advice
5 Answers
Jeff Busch
19,287 PointsHi Ali,
You don't need ul. Also, the code challenge states: Then, remove all margin, padding, and list styling.
Jeff
Derek Etnyre
20,822 PointsIf I remember correctly, there is no need to include the ul in the selector.
Try using .contact-info (font-size: 0.9em;)
Steve Suresh
13,185 PointsI tried the following code which was accepted.
.contact-info {
font-size: 0.9em;
list-style: none;
margin:0;
padding: 0;
}
Krystina Scott
2,606 PointsWhy is adding ul not a requirement?
MARCOS TIMANA
21,414 PointsI removed the ul and it worked
Ryan Duncan
7,146 PointsRyan Duncan
7,146 PointsWhy is selecting ul not needed? In the video, he seems to be adamant about going through and selecting all of those properties in that way. Just curious for future projects.