Re: Absolute positioning - a done deal?

Christopher <[email protected]> Mon, 24 Apr 2006 07:27:30 -0700
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
Hi,

On 4/24/06, Seb Frost <[email protected]> wrote:
> "I'm not completely sure it's relevant, but the style declarations
> above contain contradictory property assignments"
>
> I disagree, floating and position are both used to achieve similar effects,
> but they're two separate properties and using one does not negate the value
> of the other!
>

You're partly correct--

My point was that the original poster was trying to place elements
back into the flow, but that the 'float' was going to prevent this
from happening (see [1] and [2])--which it does. So the
'position:static;' declaration I picked out of the sample code is
going to have no effect on the POSITION of the element it's applied to
and the element is still going to be removed from the flow.

It will only have a noticeable effect if any of the child elements of
the div it's applied to are absolutely positioned. If no child
elements are absolutely positioned, then the position declaration is
superfluous.

-Christopher

[1] floats: http://www.w3.org/TR/CSS21/visuren.html#floats
[2] positioning: http://www.w3.org/TR/CSS21/visuren.html#choose-position


Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/