[css-d] Positioning a popup window over the button

2012-01-07 Thread Laura Valentino
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??

Re: [css-d] Positioning a popup window over the button

2012-01-07 Thread G.Sørtun
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

Re: [css-d] Positioning a popup window over the button

2012-01-07 Thread Tom Livingston
You could try using absolute positioning, making it relative to the button's containing element. I'm guessing that would allow you to position it better with the button as you desire. Sent from iOS 5 On Jan 7, 2012, at 10:47 AM, G.Sørtun gunla...@c2i.net wrote: On 07.01.2012 15:12, Laura

Re: [css-d] Positioning a popup window over the button

2012-01-07 Thread Laura Valentino
On Jan 7, 2012, at 10:47 AM, G.Sørtun gunla...@c2i.net wrote: 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. Thanks Georg, that solves the problem! I have yet to wrap my brain

Re: [css-d] Positioning a popup window over the button

2012-01-07 Thread Tom Livingston
Sent from iOS 5 On Jan 7, 2012, at 1:29 PM, Laura Valentino la...@vidmot.com wrote: On Jan 7, 2012, at 10:47 AM, G.Sørtun gunla...@c2i.net wrote: 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

[css-d] Why z-index does not work for transformed element?

2012-01-07 Thread Peng Yu
Hi, In the following example, no matter what z-index I set, div2 is always above the first div. Does anybody know how to change css to make div2 in the bottom? Why z-index does not work with transform? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

Re: [css-d] Why z-index does not work for transformed element?

2012-01-07 Thread Mark Senff
In the following example, no matter what z-index I set, div2 is always above the first div. Does anybody know how to change css to make div2 in the bottom? Why z-index does not work with transform? You just need to make sure that the DIV elements have a position value. Set it to

Re: [css-d] Why z-index does not work for transformed element?

2012-01-07 Thread Philippe Wittenbergh
On Jan 8, 2012, at 1:47 PM, Peng Yu wrote: In the following example, no matter what z-index I set, div2 is always above the first div. Does anybody know how to change css to make div2 in the bottom? Why z-index does not work with transform? In general, z-index only applies to positioned

Re: [css-d] Why z-index does not work for transformed element?

2012-01-07 Thread Philippe Wittenbergh
On Jan 8, 2012, at 3:04 PM, Peng Yu wrote: So my code (without position:absolute) should work theoretically speaking. It is just that the feature hasn't been implemented in the browser. Is it the case? It (your example) theoretically should work if you use a negative z-index or if your

[css-d] :: ie 6/7/8 ::

2012-01-07 Thread David Laakso
Comments/suggestions and problem alerts appreciated [signature link]. Redmond 6 at 640 fixed width. Redmond 7 and 8 at  480 and up. Thanks. ~d -- Chelsea Creek Studio http://ccstudi.com __ css-discuss