S
S
sdevalex2012-02-24 11:54:05
css
sdevalex, 2012-02-24 11:54:05

CSS. Position: absolute

Where is there a description of how an absolute box behaves when the left property is not set? I looked through the specs and couldn't find anything like it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lashtal, 2012-02-24
@lashtal

www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values ​​for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below ; otherwise, set 'right' to the static position and apply rule number one below.

A
AFoST, 2012-02-24
@AFoST

Doesn't seem to affect like float on absolutely positioned elements, does it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question