@ J.Jones You have to use clear:both
in the group to break the float when using Float
in the elements. To solve your problem I created a Div
on the outside named .group and in it I created a ::after
pseudoelement and I used the style clear:both
to clear the float and play the rodape
down. Take a look at the code that you will understand.
OBS I made changes to your CSS just for you to better visualize what was done.
Click RUN to see the code working
#DivRodape{
position: absolute;
top: auto;
height: 35px;
line-height: 35px;
text-align: center;
width: 100%;
background-color:#004085;
}
#DivLateral{
position:relative;
border-width:2px;
width:100px;
height: 100px;
background-color: peachpuff;
float: left;
}
#DivA{
position: relative;
border-width:2px;
width: 100px;
height: 100px;
left:0px;
background-color: red;
float: left;
}
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}
<div class="group">
<div id="DivA"></div>
<div id="DivLateral"></div>
</div>
<div id="DivRodape"></div>
Search for "Clear Fix CSS" and you will see several examples.
Here is a reference source in Portuguese
link