Here's an example of what I'm trying to adjust:
* {
margin: 0;
padding: 0;
}
html,body {
height: 100%;
}
#topo {
background: limegreen;
position: static;
left: 60px;
top: 35px;
width: 100%;
line-height: 200px;
}
#conteudo {
background: white;
border: 1px solid silver;
position: absolute;
left: 15%;
top: 15%;
margin: 0 auto;
width: 70%;
height: auto;
}
#rodape {
bottom: 0;
width: 100%;
line-height: 50px;
position: relative;
background: limegreen;
text-align: center;
}
<div id="topo">
<h1>Titulo</h1>
</div>
<div id="conteudo">
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
<p>lorem ipsum</p>
</div>
<div id="rodape">RODAPE</div>
Note that I'm trying to stay at div
named as footer , below div
called content .
The task can be done using both CSS and Javascript, as long as it does not drastically change the layout here provided in the example. Because the design reflects the actual design, and changing it will unexpectedly lead to a re-design .
So I want to know what can be done. It should be noted that the fixed
rule is not welcome for the case.