Archive for 'Stacking layers' Category

Stacking layers

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

We briefly discussed z-index order and stacking of layers. In this section we shall understand this concept in more detail. CSS allows designers to position boxes on layers, in addition to rendering the layers from 0 to whatever integer value they wish to stack layers in the z-index property. The position of the layer in [...]

Default stacking rules

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

Let us visualize a situation where no z index is assigned to a layer. What would be the stacking order—Default? The default order of stacking takes into account the background and borders of the root element, the descendant blocks in the normal flow—in the order of appearance in HTML, the descendant order of elements—again in [...]

How floating elements can be handled

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

The stacking of floating blocks is handled differently. They are placed between the nonpositioned and the positioned boxes after taking into account the background and borders of the root element, the descendant blocks in the normal flow—in the order of their appearance in HTML, floating blocks, and descendant positioned elements in the order of their [...]

Using z-index to change default stacking

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

If a z-index is specified, then the default stacking order is overridden, and the specified stacking order takes effect. The z-index defines the position of the element in the z-index or third dimension of the page. The integer value can be positive or negative. The layer with the lowest index value will be the bottommost [...]

Examples of stacking

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

The code for the display of overlapping cells is given below for ease of understanding. Each <div> is defined, its properties set, and then a z-index order has been assigned. Readers should try to reassign the z-index order or change the properties of different div elements to see the effect on the positioning of layers. [...]