Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

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!