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 trialJack Fitzgibbon
7,607 PointsNeed 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
Jack Fitzgibbon
7,607 PointsHere's a link to the Code Pen: http://codepen.io/jackfitzgibbon/pen/midvq
3 Answers
Dave Thomson
3,157 PointsOr for brevity
padding: 50px 0;
Juan Jose Cortes Guzman
7,894 PointsHi, 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
7,607 PointsThank you both for the replies!
Jack Fitzgibbon
7,607 PointsJack Fitzgibbon
7,607 PointsHere's a link to the Code Pen: http://codepen.io/jackfitzgibbon/pen/midvq