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!

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 CSS Basics (2014) The Box Model Margins

Treehouse staff needed here please, margin-bottom and font-size are two seperate items.

margin-bottom and font-size are two seperate items

h2 { font-size: 3.3125em; /* 53px/16px / font-weight: normal; line-height: 1.1; margin-bottom: 0.5em; / 26px */ } so why in the video is he trying to use these together. What on earth does margin bottom have to do with font size? I think there should be a video just on these problems in depth with alot of examples.

I'm asking for treehouse staff please.

Blake Larson
Blake Larson
13,014 Points

1em by default is 16px. em is just a scalable unit used instead of pixels. 2em is 32px, .5em is 8px. So it's margin-bottom: 8px;

2 Answers

Thank you Blake Larson for your advice however my original post is from CSS Basics, The Box Model, Margins video the the code is exact from the teacher (his own workings). This is why i need a treehouse staff to answer. I have requested help from support staff also.

Blake Larson
Blake Larson
13,014 Points

So it's not as much a question as it is a course suggestion?

Doesn't matter anymore I've found answers from codecademy.