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 trialArikaturika Tumojenko
8,897 PointsWhat's wrong with my code?
I am trying to set the font size to 0.9em but when I check my work, the workspace tells me that I haven't done that. Is there something wrong with my code, I don't really understand.
.contact-info ul {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style: none;
}
2 Answers
Cissie Scurlock
11,072 PointsHi Silvia, You don't need to put ul. Since .contact-info is a class that is all you need to put in the selector.
Umar A
4,041 PointsHi,, there is a small mistake in your code,, try using the following code
ul.contact-info {
font-size: 0.9em;
margin: 0;
padding: 0;
list-style: none;
}
The selector you used is called (Descendant Selector) and it's totally different from what the task is asking for
to read more about Descendant Selectors, Click Here
Arikaturika Tumojenko
8,897 PointsYes Umar Alkhamis , you were right. Since I am reading about CSS selectors from more than one source, I think I mixed up the informations a bit. What about what Cissie Scurlock said? I suppose it applies, right?
Umar A
4,041 PointsYeah she's right too