Sticky Footer with Flexbox
How do I make an sticky footer with flexbox?
What is a sticky footer with flexbox? How do you make a sticky footer with flexbox? This script and codes were developed by Tim Guo on 21 December 2022, Wednesday.
Sticky Footer with Flexbox - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sticky Footer with Flexbox</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="flex-container"> <div class="flex-child header"></div> <div class="flex-child content"></div> <div class="flex-child footer"></div>
</div>
</body>
</html>
Sticky Footer with Flexbox - Script Codes CSS Codes
body,
html { height: 100%;
}
.flex-container { width: 600px; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
.flex-child { background: rgba(0, 255, 0, 0.5);
}
.header,
.footer { height: 50px; width: 100%;
}
.content { width: 100%; background: rgba(0, 0, 255, 0.5); -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1;
}
Developer | Tim Guo |
Username | timothyguo |
Uploaded | December 21, 2022 |
Rating | 3 |
Size | 1,986 Kb |
Views | 10,120 |
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!
Name | Size |
Angular Template | 2,768 Kb |
Registration | 6,361 Kb |
Bat Pixel Art Animation on one Div | 44,298 Kb |
Css Transition | 1,911 Kb |
Responsive Alert Settings | 8,411 Kb |
Pacman loading animation | 3,052 Kb |
Create User | 3,861 Kb |
Three Pane App Layout | 2,923 Kb |
CSS Quantity Queries Demo | 3,673 Kb |
Checkbox Table with Tree Structure | 4,354 Kb |
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!
Name | Username | Size |
Banner Ad | Raquellorenzana | 4,172 Kb |
Weather App | OmranAbazid | 2,596 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Mesmerizing octopus | Jllodra | 3,549 Kb |
Drop Cap | Gsaiki | 1,571 Kb |
Toggle Time | Petebot | 5,345 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
A Pen by Paul Sullivan | Pwsm50 | 2,349 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!