links for 2011-01-22
-
“Type is the foundation of print and web design. Ever
-
Stacking and float
For floating blocks the stacking order is a bit different. Floating blocks are placed between non-positioned blocks and positioned blocks:
1. Background and borders of the root element
2. Descendant blocks in the normal flow, in order of appearance (in HTML)
3. Floating blocks
4. Descendant positioned elements, in order of appearance (in HTML)Actually, as you can see in the following example, the background and border of the non-positioned block (DIV #4) is completely unaffected by floating blocks, while the content is affected. This happens according to CSS standard float behaviour.
This behaviour can be explained with an improved version of the previous ordered list:
1. Background and borders of the root element
2. Descendant blocks in the normal flow, in order of appearance (in HTML)
3. Floating blocks
4. Inline descendants in the normal flow
5. Descendant positioned elements, in order of appearance (in HTML) -
Inner Shading
-
Inner shadows