Prev | Current Page 245 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

When there are floats in the way, however, the line boxes adjacent to the
floats are shortened??”see Floating and Clearing (p. 180) for more information.
Although line boxes are stacked with no space between them, we can affect the
height of a line box with the line-height property. If the computed value of the
line-height property is greater than the vertical distance occupied by the inline
boxes in a line box, the line box is vertically centered within the specified line
height. Half the difference is added at the top of the line box and half at the bottom.
This behavior corresponds to the typographical concept of half-leading, where strips
of lead (hence the name) or brass were inserted between the lines of type to increase
the line spacing.
List Formatting
An element with a display property value of list-item generates a principal box
just as any other block box. It will also generate an additional box for the list marker.
This box is generated outside the principal box and can??™t be styled independently
in CSS2.


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