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
nahed abdelhalim
1,570 Pointscode wrong
wrapper{ max-width:940px;margine: center;} what is the wrong of code
4 Answers
Jacob M.
5,122 PointsYou can center block-level elements by using:
margin: 0 auto;
Brian Compton
1,403 Pointswrapper{ max-width:940px;margin: center;} // Your spelled "margin" wrong.
Also, I don't think that margin: center is a thing. What is it that you are trying to do?
James Barnett
39,199 PointsYou are right margin: center is not a thing.
source: http://www.htmldog.com/reference/cssproperties/margin/
nahed abdelhalim
1,570 Pointsthanks
nahed abdelhalim
1,570 Pointsthank you for MR.James and Prian but that not meaning you laugh on my question it is important for me because i am begening and you in a high level it is not important
James Barnett
39,199 PointsYou are correct it is important to start with a solid foundation. Spelling properties correctly and using the correct attribute for a property is an important skill for a person starting out learning CSS.
Brian Compton
1,403 PointsNahed, I apologize if it appeared that I was laughing at your question. I was not. It's great that you are here learning. Please ask any and all questions that you can come up with.
James Barnett
39,199 PointsJames Barnett
39,199 PointsYou can read more about how
margin: autoworks here: http://learnlayout.com/margin-auto.html