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

CSS How to Make a Website Styling Web Pages and Navigation Make a CSS Image Gallery

removing margins

in this exercise: margin: none; or margin: o; does not clear the margins. I receive an error that only one margin is set to 0..do I have to use the marine-top: 0; etc to remove all of the margins? is there no global method to remove all margins with a single command?

3 Answers

Ahmed Samy
PLUS
Ahmed Samy
Courses Plus Student 1,101 Points

Yes There is a WAY //margin:0; That's all what U need to Write and also for setting margins for ex: //margin:1px 2px 3px 4px;

Łukasz Czuliński
Łukasz Czuliński
8,646 Points

As Ahmed said, this should remove all margins:

element{
margin:0;
}

Can you post the question and your exact code? I see you typed the letter "o" by accident above. Perhaps you did that in the exercise too?

Ahmed Samy
PLUS
Ahmed Samy
Courses Plus Student 1,101 Points

its 0 not O THERE IS a BIG Difference between the 2 Symbols