Prev | Current Page 261 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

It??™s positioned with respect to its containing block (p. 147),
and it establishes a new containing block for normal flow children, and for
descendants whose position property is set to absolute.
The top, right, bottom, left, width, and height properties determine the position
and dimensions of an absolutely positioned element.
Both the position and the dimensions can be expressed using all four of the positional
properties (top, right, bottom, left).25 Alternatively, you can specify the position
of one corner of the box using top or bottom in combination with left or right,
and you can specify the dimensions using width and (optionally) height.
An absolutely positioned element will overlap other content unless we make room
for it in some way; for instance, by setting margins or padding on other elements.
When several absolutely positioned elements occupy the same location, they??™ll be
stacked according to a stacking context (p. 179).
Absolute positioning also makes it possible to place an element partly or entirely
outside the viewport (p.


Pages:
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273