cssbook icon indicating copy to clipboard operation
cssbook copied to clipboard

Questions about absolutely positioning

Open hardfist opened this issue 8 years ago • 1 comments

In the absolute positioning model, a box is explicitly offset with respect to its containing block. It is removed from the normal flow entirely (it has no impact on later siblings). An absolutely positioned box establishes a new containing block for normal flow children and absolutely (but not fixed) positioned descendants. However, the contents of an absolutely positioned element do not flow around any other boxes. They may obscure the contents of another box (or be obscured themselves), depending on the stack levels of the overlapping boxes.

" They may obscure the contents of another box (or be obscured themselves), depending on the stack levels of the overlapping boxes" ,I can't figure out under what circumstance that The may be obscure themselves,could you give an example?

hardfist avatar Nov 22 '16 09:11 hardfist

ahh that could be reworded - I was mainly thinking about two absolute positioned boxes overlapping each other based on the stacking context

mixu avatar Nov 22 '16 18:11 mixu