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

HTML How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

Luis David Ramirez Ramirez
Luis David Ramirez Ramirez
620 Points

Can we use "none" to set width as 0?

In the video we can use percent or pixels but how about the 'none'?

Thanks for answer me.

Greetings

1 Answer

Andres Ramirez
Andres Ramirez
18,094 Points

If you want to set a width, there must be a numerical factor measured in pixels or percentage.

For a zero width or margin, just set to 0.

You can use "none" on other CSS attributes such as display, border, text-decoration, etc.

Hope this helps!