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


Jack Fitzgibbon
Jack Fitzgibbon
7,607 Points

Need help with HTML and CSS code (Beginner level)

I have followed one of the deep-dive css tutorials; the class and id selector one. I have moved the "Back to top" link/href into the footer class, obviously going against the tutorial, but it seems it hasn't vertically centered or something like that. I was wondering if anyone reading this would know how to fix this.

Thank you, Jack

3 Answers

Dave Thomson
Dave Thomson
3,157 Points

Or for brevity

padding: 50px 0;

Hi, try to add a padding_bottom: 50px; to the .base class.

.base {
padding-top: 50px;
color: white;
text-align: center;
font-size: 24px;
padding-bottom: 50px;
Jack Fitzgibbon
Jack Fitzgibbon
7,607 Points

Thank you both for the replies!