John wrote:
In the CSS box model, are background images understood to occupy the
same height and width as the outer edge of the border area?
thank you
John
No, this is only true for background-color which covers the whole
border box, whatever it's dimensions. For background-image, the image
can only occupy the same height and width of the border box if the
image has a background-size (in both x and y axis) of 100% and the
value for background-origin is border [1].
Please remember that a box could have a border or not have a border.
The absence of a border means the context box and border box are the
same and any reference would be to the border box when pertaining to
background.
The same applies with a box without padding. The absence of padding
and a border means the padding box, context box and border box are the
same and any reference would be to the border box when pertaining to
background.
1. <http://css-class.com/test/css/backgrounds/background-origin1.htm>
--
Alan http://css-class.com/
Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/