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 trialSophia Hartl
821 PointsIm on a code challenge for css and its telling me to set all sides of the margin to zero but margin: 0; isnt working
ive tried
margin: 0;
and
margin-left: 0; ect...
2 Answers
Edward Seibert
32,055 PointsTry margin: 0px;
and see if that helps :)
Michael Bates
13,344 Pointsset it like this and see if it works:
margin: none;
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsYou will need to post your code for us to troubleshoot. I just went through the challenges (all passed okay) and there wasn't a question that was specific to setting all sides of the margin to zero, so maybe also copy & paste the question as well. You are correct with
margin: 0;
.