silly issue with div position

Hi,

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:
http://wsp-sandbox1.co.uk/

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?
scm0smlAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Luis PérezSoftware Architect in .NetCommented:
Try with style:
position:absolute;bottom:0px;

Hope that helps.
scm0smlAuthor Commented:
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.
Tom BeckCommented:
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.
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

scm0smlAuthor Commented:
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?!
Tom BeckCommented:
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;
}

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom BeckCommented:
It also worked in IE8, IE8 Compatibility mode, Safari, and Chrome.
scm0smlAuthor Commented:
shiver me timbers!! my hero!!

Not 100% sure why but its worked!!

Top man.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.