K
K
Kir Shatrov2011-03-08 09:13:20
css
Kir Shatrov, 2011-03-08 09:13:20

Layout, position:relative creates empty space

The code is here
The issue is that for some reason there is a lot of empty space under the main block (#page), it seems to be due to position:relative in the left menu.

How to deal with it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Desiderata, 2011-03-08
@RazoR_Empire

try this:
#menu {
float: left;
height: 300px;
margin-left: -160px;
width: 160px
}
#page {
border: 2px solid #404241;
padding: 8px 16px;
top: -300px;
width: 600px
}

H
homm, 2011-03-08
@homm

Duck position:relative shifts only the image of the block. For all external elements, #page is still below the menu. He expands the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question