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 Styling Web Pages and Navigation Make a CSS Image Gallery

Im 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...

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

You 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;.

:dizzy:

2 Answers

Try margin: 0px; and see if that helps :)

Michael Bates
Michael Bates
13,344 Points

set it like this and see if it works:

margin: none;