umbrella_thing Posted July 10, 2006 Share Posted July 10, 2006 Hi GuysI have a website that has a div layer 600px wide, margin set to auto so it aligns in the center horozontally. What I want to anther div layer inside this "main" layer called "bottom" to sit, well, on the bottom. So no matter how much stuff is on top its always at the bottom of the "main" div layer. Is this possible?Thanks guys!Umbrella ??? Quote Link to comment https://forums.phpfreaks.com/topic/14167-floating-on-the-bottom/ Share on other sites More sharing options...
makeshift_theory Posted July 11, 2006 Share Posted July 11, 2006 Sure is, the best thing to do is create a layout structure similar to this:[code]<div id="container"><div id="header">Put header info in here</div><div id="bodycontainer"><div id="leftside">left side</div><div id="center">center</div><div id="rightside">right side</div></div><div id="footer">test</div></div>[/code]just copy and paste into dreamweaver or notepad and you'll see what it does. Basically you use container div's to hold your left side, center etc... Quote Link to comment https://forums.phpfreaks.com/topic/14167-floating-on-the-bottom/#findComment-56358 Share on other sites More sharing options...
umbrella_thing Posted July 13, 2006 Author Share Posted July 13, 2006 Ahh thanks man, I realised the question doesn't really make sense, but I know what your saying :)Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/14167-floating-on-the-bottom/#findComment-57063 Share on other sites More sharing options...
makeshift_theory Posted July 19, 2006 Share Posted July 19, 2006 No problem mate =) Quote Link to comment https://forums.phpfreaks.com/topic/14167-floating-on-the-bottom/#findComment-60558 Share on other sites More sharing options...
dbrimlow Posted July 21, 2006 Share Posted July 21, 2006 Hmmm. That is indeed a simple layout order solution within the markup body tag, and if all divs are the same and one on top of the other, the footer will indeed be last. But you are putting divs for left middle and right columns. 600px width is not enough room to work with for a container when creating a 2 or 3 column layout. But if you just want a top, middle and bottom, no problem. But that still doesn't take into account paddings, borders, margins, floats, clears, box level componants, navigation, etc. within the divs.What I mean is, it doesn't address the actual css for the div attributes. And if you try to have 2 columns float:left, and do not specify how the footer should handle that, you could end up with a 1200 wide container with a footer alongside the banner.The key to footers is to make the width match the container and not let it wrap.width:100%, clear:both works for most layouts. Quote Link to comment https://forums.phpfreaks.com/topic/14167-floating-on-the-bottom/#findComment-61751 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.