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 trialLuis David Ramirez Ramirez
620 PointsCan 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
18,094 PointsIf 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!
Luis David Ramirez Ramirez
620 PointsLuis David Ramirez Ramirez
620 PointsThanks for your help Andy