Answer the question
In order to leave comments, you need to log in
Frequent case of sticky footer for IE, how justified?
I'm looking for different alternative design methods with a sticky footer. There is a table solution, but it is cumbersome and not entirely intuitive, a JS solution (which was discussed a little earlier) is universal, but not very good due to the mixing of behavior and presentation. A flexbox solution would be good for everyone - intuitive, concise and efficient, if only flexbox would work in IE.
The result of mental efforts was the following code:
*{
margin:0px;
padding:0px;
}
html{
height:100%;
}
body{
height:100%;
font-family:Arial;
font-size:16px;
position:relative;
}
header{
background-color:lime;
}
header, footer{
display:block;
min-height:200px;
}
footer{
position:absolute;
width:100%;
bottom:0%;
background-color:forestgreen;
}
.mainWrap>*{
display:inline-block;
margin-left:auto;
margin-right:auto;
}
content{
width:79%;
min-height:200px;
background-color:chartreuse;
}
aside{
width:10%;
min-height:200px;
background-color:green;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>test</title>
<style>
</style>
</head>
<body>
<header>
This is a header
</header>
<div class="mainWrap">
<aside>sidebar left</aside>
<content>A lot of content</content>
<aside>sidebar right</aside>
</div>
<footer>
This is a footer
</footer>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Solution through tables - yes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question