Jump to content

Footer float help


stuffradio

Recommended Posts

I am trying to have my layout template have a footer that always stays on the bottom and will keep going down as the content box goes down. I don't have the content box expand yet and I don't know the best way to expand the content box and keep the footer down.

 

Can anyone see anything wrong with my CSS that would fix the problem?

 

http://carlwuensche.com/unknown/create.html

Link to comment
https://forums.phpfreaks.com/topic/164338-footer-float-help/
Share on other sites

Yes, if the div #maincontent expands. It would be better if you do not use absolute position on the div #sidenav. You can use float:right for #sidenav. It would be better if you enclose the content div inside a container and use float to position them.

 

 

<div id="#container">
  <div id="maincontent">....</div>
  <div id="sidebar">....</div>
</div>

<div id="bottombar">...</div>

 

and instead of using line-break after #top-nav, you can use top-margin on the container.

Link to comment
https://forums.phpfreaks.com/topic/164338-footer-float-help/#findComment-866915
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.