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

what does the -5x in the margin mean?

Im still a little confused about that.

1 Answer

-5x means nothing from my knowledge. -5px on the other hand means something.

margin : The margin clears an area around an element

css

margin-top: 5px; /* This means it will add 5px to the margin-top. / margin-top : -5px / This means it will subtract 5px to the margin top meaning the area around the element will decrease */

hope that help. If not go back to the css foundations course and look at the video again. You can always go to http://www.w3schools.com/css/css_margin.asp to find out more information.