Log in

View Full Version : Div distance



jan24
10-13-2010, 08:27 PM
Hallo,

I got a question.
I got a main div and a footer div.
Sometimes the main div is larger then the other one depends on which page he is.
So i want that the footer div wants to move with the height of the page and not overlay the main div.

So i want something that the footer div takes so much distance from the main div. Some code like that.

Is this on somehow possible? I guess its possible only dont know how.
Hope somebody knows. :)
Thanks in advance.

Greetz,
Jan24

jan24
10-15-2010, 01:26 PM
anybody have any idea how to solve this?
Alright i might have not been cearly enough. So i will explain it again.

<div id="header">
// For example this as a height got from 200px. (in css)
</div>
<div id="main">
// Here i put top:210 so he doesnt overlaps the header. (in css)
</div
<div id="footer">
// I can put here bottom:0 (in css), but then he still overlaps the main div.
</div>

Anybody knows how i can solve this problem?

bluewalrus
10-15-2010, 02:23 PM
You need to post your full code. As I guess I'd say your not setting a position mode which makes the top and bottom have no function.

jan24
10-15-2010, 06:48 PM
Already solved still thanks for reply :)