logo

Air CSS ver. 2.3.2

Coordinates

The coordinates sets where an element is positioned inside of a document or another element.

Mnemonics

Bases
Modifiers
Optional extensions
top
right
bottom
left

none
none

Examples

This example shows how absolute elements are absolutely positioned inside of a relative element with a lot of padding (.pa7). The absolute element outer margin snapping to the containing element is highlighted in each case.

.top
.right
.bottom
.left
.top .left
.top .right
.bottom .right
.bottom .left
no coordinate

Source code

/* generate: container-rule */
.top { top: 0; }
.right { right: 0; }
.bottom { bottom: 0; }
.left { left: 0; }
/* end generate */