Danihamer Posted May 2, 2017 Share Posted May 2, 2017 Hello... I have a footer that won't stick to the bottom of the page. On laptops it looks like it is on the bottom but when I check the site on bigger screens it shows higher. I have uploaded a pic with the problem. Thank you in advance. Link to comment Share on other sites More sharing options...
Ingolme Posted May 2, 2017 Share Posted May 2, 2017 What is the CSS code for your footer? Link to comment Share on other sites More sharing options...
Danihamer Posted May 2, 2017 Author Share Posted May 2, 2017 4 hours ago, Ingolme said: What is the CSS code for your footer? background-color: #1c1c1c; line-height: 35px; padding: 15px 0; position: static; Link to comment Share on other sites More sharing options...
Ingolme Posted May 2, 2017 Share Posted May 2, 2017 It looks like you haven't tried to get it to stick to the bottom. What you're looking for is called a sticky footer. It's a very common technique. Early implementations required you to set a fixed height to your website's footer, but there might be more modern approaches. Link to comment Share on other sites More sharing options...
Danihamer Posted May 2, 2017 Author Share Posted May 2, 2017 I am not familiar with writing code. Could you write down exactly what I need to add to the stylesheet.css? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now