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 trialAndrew Goddard
40,807 PointsMore Text Properties - Part 2, second code challenge
Question: The link's container is set to hide its overflow and it's not allowing the text to wrap, so the link appears to be cut off. Select the paragraph with the class 'link' and set its text overflow to display an ellipsis.
I must be doing something wrong, but I can't work out what. I don't understand why the below isn't correct?
p #link { text-overflow: ellipsis; }
5 Answers
Chase Lee
29,275 PointsI used:
.link{text-overflow: ellipsis}
(and just a little thing, you guys miss spelled ellipsis...They ask for "i" instead of "e")
Seyed Tabatabaei
3,268 PointsWould you be able to assist me? I am completely stumped on this one. This is what I currently have:
p.link { text-overflow: ellipses; }
Andrew Goddard
40,807 PointsIt worked for me without selecting the link class, so
p {text-overflow: ellipse; }
Charmaine Wallace
22,276 PointsHoly cow: Chase James you are my hero. Spent ages banging my head before coming to the forum (I hate admitting defeat, hate it ...). And there it is: i instead of e. AAAAAAAaaaaaarrrrgggggghhhh!!!!! Attention to detail!!!!! Thank you so much!
Andrew Goddard
40,807 PointsI've just worked it out.
Apparently you can't apply the ellipsis style to an inline element? I don't remember seeing that in the video...
So mention of the "link" class in the question was a red herring - I was only supposed to target the paragraph.