Archive for 'Understanding the need for visual formatting model' Category

Understanding the need for visual formatting model

By Steve Monas - Last updated: Monday, June 14, 2010

CSS visual formatting model supposes that a document contains a number of boxes within boxes. A box can have a border and a background. The content of the box will be held in the center of the box and the area around it will be the padding. The margin is around the border of the [...]

Layouts and element positioning in visual formatting

By Steve Monas - Last updated: Monday, June 14, 2010

All CSS positioning schemas such as float, relative, absolute, fixed, and static are applicable to the visual-formatting model. Normal flow in the visual formatting context can be with reference to the block or inline elements, but not both simultaneously. Block elements participate in a block-formatting context, and inline boxes participate in inline formatting context. In [...]