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 trialArjan van Dijk
2,053 PointsProblem with code challange
I don't know whar I'm doing wrong on this one:
Let's make the <span> element with the class "title" larger. Increase its font size to 26 pixels.
My solution:
.title span { font-size: 26px; }
3 Answers
Luke Pettway
16,593 PointsHello Arjan.
The span already has the .title class so you do not need to include span in the CSS selector
.title{
font-size: 26px;
}
You can also do it this way too
span.title{
font-size: 26px;
}
The second option adds an extra level of specificity, meaning that if you wanted to override it later on you'd have to add yet another selector into the mix too or use CSS' cascading to override it.
Arjan van Dijk
2,053 PointsThanks Luke!
Rabit Ebibi
5,875 Pointsspan.title { font-size: 26px; } very right answer