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 More Text Properties

SAMUEL LAWRENCE
PLUS
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

What is the difference between the "overflow" property and the "text-overflow" property.

Hi What is the difference between the "overflow" property and the "text-overflow" property. And when do you use them. I'm watch the video twice but I still have some confusion about that. Thanks

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Samuel:

The overflow CSS property specifies whether to clip content, render scroll bars or display overflow content of a block-level element.

The text-overflow CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, or display an ellipsis ('…', U+2026 Horizontal Ellipsis) or a Web author-defined string.

Ken