Sticky Footer

Developer
Size
2,071 Kb
Views
48,576

How do I make an sticky footer?

What is a sticky footer? How do you make a sticky footer? This script and codes were developed by Keithbarney on 28 September 2022, Wednesday.

Sticky Footer Previews

Sticky Footer - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sticky Footer</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<html> <body> <div id="sticky-container"> <div id="header"><span>header</span></div> </div> <div id="footer"><span>footer</span></div> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Sticky Footer - Script Codes CSS Codes

html, body { height: 100%; width: 100%;
}
#sticky-container { min-height: 100%; margin-bottom: -60px;
}
#sticky-container:after { content: ""; display: block; height: 60px;
}
#header, #footer { background-color: #ccc; height: 60px;
}
#header { position: fixed; top: 0; z-index: 100; width: 100%;
}
Sticky Footer - Script Codes
Sticky Footer - Script Codes
Home Page Home
Developer Keithbarney
Username keithbarney
Uploaded September 28, 2022
Rating 3
Size 2,071 Kb
Views 48,576
Do you need developer help for Sticky Footer?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Keithbarney (keithbarney) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!