xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>Fixed Footer Example</title>
<style>
body {
margin: 0;
padding-bottom: 100px; /* Adjust this value to match the height of your footer */
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 100px; /* Adjust this value as per your footer height */
background-color: #f5f5f5;
padding: 20px;
box-sizing: border-box;
text-align: center;
}
</style>
</head>
<body>
<h1>Content</h1>
<!-- Your webpage content goes here -->
<div class="footer">
Footer Content
</div>
</body>
</html>
xxxxxxxxxx
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: red;
color: white;
text-align: center;
}