On 07.01.2012 15:12, Laura Valentino wrote:
I'm trying to position a popup window over a button. I've succeeded in
doing that by using position: relative and applying a negative top value.
The problem is that it creates a space below the button (I assume the same
size as the window) and pushes the footer down below that. What's going
on??

http://vidmot.com/popupwindow/

Relative positioning means the space occupied by the element, is taken up in the original - non-offset - position.

One solution is to add ' margin-bottom: -460px;' to <div id='PopUp' - (height + padding + border-width), so it doesn't take up any space in original position.

regards
        Georg

______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to