Jump to content

Footer div is slipping under my content div


uknowho008

Recommended Posts

hi, i converted my site from tables to divs a while back which was a mojor headache. but it has worked fine since. until now. i am trying to add a footer about the same size and style as my header. in source i placed the div right after the sidebar div within my container div. and in css i added width of 100% and height of 50px as well as a background color. i tried a bunch of different things but cant figure out how to keep the content div from over lapping. i would also like the sidebar to continue to the bottom of the page. when i first set up the site with divs i placed the sidebar after content in source so content would load before the sidebar which might have been a bad idea. i dont know. anyway, help would be greatly appriciated. i am also open to different design routes to get the same layout. thanks

 

here is the site http://korruptindustries.com/korruptb4/home/index.php

here is the style sheet http://korruptindustries.com/korruptb4/includes/css/korrupt.css

 

there is another style sheet for the header but i didnt think that was necessary im sure you can figure out how to get it if you need to :)

 

also i didnt upload the page with the footer div as i didnt want the site to be messed up. thanks again.

Link to comment
Share on other sites

If you want a footer, you will need to insert it after the SideBar div. You might try inserting a div between the two, with clear:both; width:100%. As for the SideBar div extending to 100% height. You should just make a background image, and repeat it in the Y direction. If you are pulling in all the content dynamically, you are probably looking at a much cleaner source code than I am, but your basic page structure would be as follows:

 

          <div class="Container">
               <div class="UniversalHeader">
                 
               </div>
               <div class="NavBar">

               </div>
               <div class="UnderNav">
		   
       </div>
               <div class="Content">
               
               </div>
               <div class="SideBar">
               
               </div>
               <div style="float:left; width:100%; clear:both"></div>
               <div id="footer">

               </div>
          </div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.