silly issue with div position

Posted on 2011-10-03
Last Modified: 2012-05-12

One of the more pleasant views for you today I'm sure but if you could take a look at this site which I have just started developing:

For the life of me I can't see why the footer div isn't displaying at the bottom of the site, I've been looking at it too long so am not seeing things clearly hence need a fresh pair of eyes.

I've put a large red div in just so you can see what is going on, the black footer div should be displaying under neath the red div.

Anyone see what is going on?
Question by:scm0sml
    LVL 25

    Expert Comment

    by:Luis Pérez
    Try with style:

    Hope that helps.

    Author Comment

    nah i had already tried that.

    just uploaded for you to see the results.

    It does move it down slightly but not to where i would expect it to be.
    LVL 38

    Expert Comment

    by:Tom Beck
    It's because you are not specifying a height for your "main_content" div or for either the "left" or "right" div. You have a min-height for "main_content" of 300px and that is determining the position of the "footer" div. All other content inside the "main_content" div is just over flowing that 300px height.

    For example, take away the position:absolute, bottom:0, and margin-top:50px from the "footer" div and change the height of the "right" div from 182px to 1160px and you will get close to what you want, although that may not be optimal.

    Author Comment

    The problem then though is that I don't want any of it to be a given height, it just needs to grow with the content?!
    LVL 38

    Accepted Solution

    I don't know why this worked, but try this (it worked in Firefox):

    1.) Remove styles from the footer div:

    #footer {
        background-color: #000000;
        height: 93px;
        width: 100%;

    2.) Remove the height from the "right" div:

    #right {
        float: left;
        width: 729px;
    LVL 38

    Expert Comment

    by:Tom Beck
    It also worked in IE8, IE8 Compatibility mode, Safari, and Chrome.

    Author Comment

    shiver me timbers!! my hero!!

    Not 100% sure why but its worked!!

    Top man.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now