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.

CSS CSS Layout The CSS Box Model Introducing the Box Model

Maria Lucia Alvarez
PLUS
Maria Lucia Alvarez
Courses Plus Student 479 Points

Boxes how and how to view them. Suggestion: Chrome extension "Pesticide for Chrome" https://chrome.google.com/webstore/

I use it to see how the boxes are set. Very useful for beginners and pros. Add it the "Inspect" mode and you are able to inside of a page.

1 Answer

Steven Parker
Steven Parker
218,692 Points

If anyone is reluctant to install a browser extension, you can get much the same effect just by setting the "outline" attribute in your CSS: I have done this frequently when working on layouts.

* { outline: 1px solid blue; }

You can make it even more similar to the extension if you give different colors to different element types.