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

Design Web Typography Final Project: Create a Typographic Site Styling the Footer

David Regel
David Regel
Full Stack JavaScript Techdegree Student 5,504 Points

How do you know how much padding you need in order to aling your page to the baseline?

At 10:00 minutes in this video, Mattox adds a "top-padding" of ".92em" to ".zen-resources h3" element. How does he know that he needs exactly this value in order align the elements again to the baseline? Do you think he used different values until he found the correct one and showed us just the perfect solution? Or is he following some kind of logic that I'm just missing?

2 Answers

Anson Low Zhan Fei
Anson Low Zhan Fei
20,182 Points

My opinion is all teachers test run the code and show the perfect solution before record the video.

As you start coding, you will find that it is almost impossible to write code in blind to get the correct typography.

Good question, in fact the only thing I'm struggling with on this course is the baseline - there has to be a logic to it in order to line everything up with the baseline padding and margin-wise?