Prev | Current Page 489 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

5 beta. However, Safari doesn??™t support multiple shadows.
vertical-align
vertical-align: { length | percentage | baseline |
bottom | middle | sub | super | text-bottom |
text-top | top | inherit } ;
This property controls the vertical
alignment of inline boxes within a line
box, or of table cells within a row.
Value
The following values apply to inline
boxes:
?–  A length value raises or lowers
(depending on its sign) the box by the specified distance.
Example
This style rule makes images within table
cells align to the bottom of the cell, to
eliminate the gap that otherwise occurs:
td img {
vertical-align: bottom;
}
?–  A percentage value raises or lowers (depending on its sign) the box by the distance
specified as the percentage applied to the element??™s line-height.
?–  The following keyword values can be specified for inline boxes:
baseline aligns the baseline of the box with the baseline of the parent
box; if the box doesn??™t have a baseline (for instance, an image)
the bottom margin edge is aligned with the parent??™s baseline
SPEC
version initial inherited
CSS1, 2 baseline NO
BROWSER SUPPORT
Op9.


Pages:
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501