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 trial

CSS CSS Foundations Text, Fonts, and Lists Text Properties

What 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
Julian Gutierrez
19,201 Points

This 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; 
}

Isn't that what I'm doing?

Julian Gutierrez
Julian Gutierrez
19,201 Points

Sorry, posted before finishing. text-indent property on the p tag. There is no need for the first line pseudo class.

Really? Huh. Why would it say "first line of the paragraph" then? That's just so confusing...

Julian Gutierrez
Julian Gutierrez
19,201 Points

I 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.

It 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!