The Ultimate CSS Reference 304
Some area of the element in question must be visible if the background-image is to
show through. If the element has no intrinsic height (either as defined by its content,
or by its dimensions), the background won??™t be visible. If an element contains only
floated children that haven??™t been cleared??”see clear (p. 271)??”no background will
show, as the element??™s height will be zero.
The tiling and positioning of the background-image on inline elements isn??™t defined
in the CSS2.1 specification, but it might be addressed in future versions.
Value
repeat The value repeat ensures that the background-image is repeated in
both directions (that is, left and right, and up and down), and along
both axes, until the element??™s background is fully covered.
repeat-x The value repeat-x ensures that the background-image is repeated
only along the x axis (that is, the horizontal axis in both
directions??”left and right) until the element??™s background is fully
covered along that axis.
Pages:
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454