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 trialCeleste Saad
2,031 PointsWhat to do when you're getting Bummer! But you know it's 100% correct?
Asked to indent the first line of my paragraph by 50px. Entered
p::first-line {text-indent: 50px;}
and it doesn't take it.
1 Answer
Julian Gutierrez
19,201 PointsThis code challenge wants you to use the text-indent on the p tag. There is no need for the first line pseudo class.
p{
text-indent:50px;
}
Celeste Saad
2,031 PointsCeleste Saad
2,031 PointsIsn't that what I'm doing?
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsSorry, posted before finishing. text-indent property on the p tag. There is no need for the first line pseudo class.
Celeste Saad
2,031 PointsCeleste Saad
2,031 PointsReally? Huh. Why would it say "first line of the paragraph" then? That's just so confusing...
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsI guess it could be confusing but that's what the text-indent property is used for.
From Mozilla Developer Network: The text-indent CSS property specifies how much horizontal space should be left before the beginning of the first line of the text content of an element.
Celeste Saad
2,031 PointsCeleste Saad
2,031 PointsIt was my mistake really, I didn't see it that way. I thought the challenge was mixing up exercises.
I'm a bit burnt out, thank you so much for helping out!