Topic: Absolute Positioning Help (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Phoenix |
posted 01-17-2003 17:55
Hello, |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 01-17-2003 18:49
Karl: Yes - it might sound awfully obvious but:: code: myStyle {
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 01-17-2003 19:36
Well... |
Paranoid (IV) Inmate From: Rouen, France |
posted 01-22-2003 12:07
A question relative to absolute positionning... Is this really posible to make frames with absolute positionning ? |
Maniac (V) Inmate From: under the bed |
posted 01-22-2003 14:38
I think you'll need to clarify a bit moonshadow - do you mean "can you have a page with frames and use absolute positioning?" or do you mean, "can you simulate frames using absolute positioning?" |
Paranoid (IV) Inmate From: Rouen, France |
posted 01-22-2003 14:51
I intended this in the second way : simulating frames with absolute positionning. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 01-22-2003 15:01
Moon Shadow: If it is the second way then have a look at the position:fixed style - its not got great browser support yet but it will give you the ability to have a static area on your screen. If you want something more complex like scrollers or iframe effects then we have solutions in the FAQ. |
Maniac (V) Inmate From: under the bed |
posted 01-22-2003 16:23
Moonshadow - it also makes a difference to what extent you're looking to simulate frames. |
Obsessive-Compulsive (I) Inmate From: |
posted 01-25-2003 07:40
If you want to absolutely position an element relative to its parent, rather than relative to the document, what you have to do is set 'position: relative' on the parent and then 'position: absolute' on the child you want to position. |
Maniac (V) Inmate From: under the bed |
posted 01-25-2003 21:00
Thanks for the clarification vigil =) |
Bipolar (III) Inmate From: France |
posted 02-05-2003 14:16
I've just had the absolute/"parent made relative" problem, and your explanation gave me some relief. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-05-2003 16:18
According to the CSS2 specs ( http://www.w3.org/TR/REC-CSS2/visuren.html#propdef-position ), position:absolute specifies offsets "with respect to the box's containing block." The definition of containing block is at http://www.w3.org/TR/REC-CSS2/visuren.html#containing-block , and says nothing about having to be positioned. Therefore, I believe IE's positioning relative to the nearest positioned ancestor is buggy. Then again, maybe that's how the CSS1 spec said to do it that way. I dunno though. |
Bipolar (III) Inmate From: France |
posted 02-07-2003 11:06
Well... In fact after some diggin' I finally found the explanation. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-07-2003 14:14
Ah. There it is. You're right, it's a little ambiguous, since in two other places it says it's with respect to its containing block. |