In a Web page, elements have three layout models:
1. The flow model, the default, is that block-level elements are distributed from top to bottom, with widths of 100%. Inline elements are horizontally distributed from left to right. 2, floating model (float)Div, p, table, IMG and other elements can be set to float. The code for the two div displays in one line is as follows: div{ width:200px; height:400px; BORDER:2PX Red Solid; Float:left;} 3. Layer model (layers) layer model has three forms: (1) absolute positioning (position:absolute) div{ width:200px; height:400px; BORDER:2PX Red Solid; Position:absolute; left:100px; top:50px;} (2) relative positioning (position:relative) (3) fixed position (position:fixed) layer model, each element may appear stacked. Stacking order can be controlled with Z-index, z-index the big person on. Z-index the same time, depending on the CSS declaration order, the latter on the.
From: http://blog.csdn.net/ybdesire/article/details/49338569
CSS layout model (flow model, floating model, layer model)