Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Erick Martinez
2,894 PointsWhat type of elements take up the full width available based on the width of their parent element?
It's not telling me the correct answer and I just wanna know for future reference.
2 Answers

Martin Lecke
14,370 PointsHi
Block elements takes up full width of their parent elements.
eg. <div>
You can also make other inline-elements to block elements with css using a property on that selector. Block on Span etc
display: block:
// example
span {
display: block;
background: red;
}

Abdifatah Mohamed
5,289 PointsBlock elements.
Erick Martinez
2,894 PointsErick Martinez
2,894 PointsThank you!