It feels like a simple question, but I'm struggling to get the exact result. I need to align 3 divs inside the div footer. I tried a lot on google and worked before. but in the footer, the fixed position does not work exactly. 
In this image, the container is a white container for the footer, red-left, green-right and center.
here is my CSS:
div .footer-container { height:53px; width:100%; position:fixed; } div .footer-container div .footer-left { background-color:#f00; float:left; width:33%; height:31px; } div .footer-container div .footer-right { background-color:#0f0; float:right; width:33%; height:31px; } div .footer-container div .footer-center { background-color:#f0f; margin:0 auto; height:31px; width:33%; }
here is the HTML:
<div data-role = "footer" class="footer-container"> <div> <div class="footer-left"></div> <div class="footer-right"></div> <div class="footer-center"></div> </div> </div>
What is doing wrong? explains pls.
source share