Prev | Current Page 258 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

A
width and height can be specified for replaced inline elements, in which case the
height of the line box in which the element is positioned is made tall enough to
accommodate the replaced element, including any specified box properties.
Positioning
In CSS2, each box has a position in three dimensions. Three positioning schemes
are used for the horizontal and vertical positioning (along the x and y axes) of
boxes??”the normal flow (p. 163) (which includes relative positioning (p. 176)), floating
(p. 180), and absolute positioning (p. 178) (which includes fixed positioning (p. 178)).
The box??™s stack level (p. 179) determines its position on the z axis.
Relative Positioning
An element whose position property has the value relative is first laid out just
like a static element. The rendered box is then shifted vertically (according to the
177 CSS Layout and Formatting
top or bottom property) and/or horizontally (according to the left or right
property).
Only the Box Is Shifted
As far as the flow is concerned, the element is still in its original position.


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