??? If both top and bottom are specified, top will be used and bottom
will be ignored.
Since it??™s only the rendered box that moves when we relatively position an element,
this positioning scheme isn??™t useful for laying out columns of content. Relative
positioning is commonly used when we need to shift a box a few pixels or so,
although it can also be useful, in combination with negative margins on floated
elements, for some more complex designs.
Control Your Containing Blocks
One side effect of relative positioning is quite handy: a relatively positioned element
is ???positioned,??? which means it becomes the containing block for any absolutely
positioned descendants. This gives us an easy-to-use tool for controlling the position
of our containing blocks: just set position to relative without moving the box at
all.
CSS Layout and Formatting
The Ultimate CSS Reference 178
Absolute Positioning
An element whose position property has the value absolute is said to be absolutely
positioned, and is completely removed from the document flow: it doesn??™t affect
subsequent elements at all.
Pages:
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272