I have a footer which should be in the bottom the page (below of every div), however it doesn't work. Footer doesn't move along with other divs when I'm adding content on the div "keski". Page: <body> <div id="ylayla"> ylayla </div> <div id="ylaala"> ylaala </div> <div id="vasen"> vasen <div id="vasenmainos"> vasenmainos </div> <div id="vasensisalto"> vasensisalto </div> </div> <div id="keski"> keski </div> <div id="oikea"> oikea </div> <div id="footer"> ala </div> </body> HTML: CSS: div#ylayla { background-color: #999967; position: relative; height: 160px; } div#ylaala { position: relative; height: 40px; background-color: #666666; } div#vasen { position: relative; float: left; width: 200px; margin-bottom: 40px; } div#keski { position: absolute; padding-left: 210px; min-height: 100%; margin-bottom: 40px } div#oikea { top: 0; right: 0; float: right; width: 200px; margin-bottom: 40px; } div#footer { border-top: dotted #CCCCCC; border-top-width: thin; width: 100%; bottom: 0; position: absolute; } HTML:
What type of layout do you want? It looks like you want two fixed sidebars and a fluid center column. Also, do you want a regular footer or a sticky footer?
Yes. Two fixed sidebars and center column which has the content. I want regular footer which would stay below of other divs.
Share your URL mate, That would make the work easy since we can have some Live tool to figure out the CSS and HTML Structure and can check out how the changes would be :| Thanks.
I would of course but since I'm developing this locally, it's kinda difficult to share any urls. Besides I already provided all the code I currently have. Removed some paragraphs and the head section, though.
Just try making the footer position from Absolute to Relative, Cant help much without getting the live site Try it and make us know. Thanks.
Didn't work. Just to be clear, I want a footer similar to this site (first example I found): http://www.aanitarha.com/
#keksi shouldn't be given an absolute position. This takes it out of the normal flow and it will not affect the footer. Float it left instead. Try following this guide: http://www.cssstickyfooter.com/using-sticky-footer-code.html