File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Overlapping two divs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Overlapping two divs" Watch "Overlapping two divs" New topic

Overlapping two divs

Dominik Müller
Ranch Hand

Joined: Apr 28, 2009
Posts: 36
Hi There,

i try to overlay two divs in vertical order.
I have one "content" area at first position and a bottom div with an footer and a background image.
I overlapped this two div's (text in the content div with fill the footer div as well):

That works as expected, but the negative position will produce an 200px-blank area at the bottom of the page (behind the footer).
Is there any chance to remove this "blank" area?
I try negative margin as another solution, but IE8 seems to have problems with it.

Thanks for any idea.
I agree. Here's the link:
subject: Overlapping two divs
It's not a secret anymore!