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
Margin property in css
I changed the value of margin property to 90 and I found it is aligned to left and if I change furthur i cannot see difference. i am not able to understand why is this happening.Please help me on this behaviour. Thanks in advance.
max-width: 940px; margin : 90 auto; }
Erik McClintock45,783 Points
Whenever you're assigning a value to something, make sure you include the type that you want to associate with that value. In this case, for example, you have:
margin: 90 auto; /* what is 90? */
You would want something like this:
margin: 90px auto; /* note that here, we specify that 90 is a pixel value by using "px" after it */