Prev | Current Page 243 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

Horizontal margins, padding, and borders can exist between
the boxes, but vertical margins are ignored for inline boxes. Dimensions (width and
height) can??™t be specified for inline boxes.22
The inline boxes that form a single line are enclosed by a rectangle that??™s called a
line box. Boxes within a line box are aligned vertically according to their
vertical-align properties. A line box is always tall enough to accommodate all
its inline boxes.
22 This advice applies to non-replaced inline boxes. We can specify dimensions for replaced inline
boxes, such as images. See Replaced Elements (p. 175) for more information.
167 CSS Layout and Formatting
When several inline boxes can??™t fit into a single line box, they??™re distributed over
two or more stacked line boxes.
When a single inline box can??™t fit into a line box, it??™s split into two or more boxes
that are distributed over as many line boxes as necessary. Margins, borders, and
padding aren??™t applied where such splits occur.


Pages:
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255