I would like the footer to display an image aligned to the left and some additional text (an inline ul
with links) aligned to the right within the footer.
Here is the CSS & HTML:
footer {
clear: both;
background: #113551;
width: 90%;
margin: 0 auto;
}
.left-foot {
float: left;
}
.right-foot {
float: right;
}
<footer>
<div class="left-foot">
<p> derp 1</p>
</div>
<div class="right-foot">
<p>derp2</p>
</div>
</footer>
Although it works somewhat, the background color of the footer isn't displaying. Why could this be happening? What would be the most effective way to address this issue? I've also tried using position relative and absolute without success.