If the element has no intrinsic height (defined either by its content
or by its dimensions), there will be no space in which the background can be seen.
Similarly, if an element contains only floated children that haven??™t been cleared??”see
clear (p. 271)??”there will be no background to show, as the element??™s height will be
zero.
If no background-position has been specified, the image is placed at the default
top-left position of the element (0,0), which is located within the top-left corner of
the element, just inside the border at the outside edge of the padding box.
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
This property accepts one or two length values, percentages, or keywords.
If only one value is specified for background-position, the second value is assumed
to be center. Where two values are used, and at least one is not a keyword, the first
value represents the horizontal position, and the second represents the vertical
position.
Pages:
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458