Re: background-position and other sundry css clarifications
Douglas Rand wrote:
> I'm a little unclear on this property. Can this be used with repeat,
> repeat-x and repeat-y, or does it imply a single copy of the image
> no-repeat only? If you *can* repeat, does the image origin begin
> repeat area, or does it extend backward to the edge of the content.
If the repeat extends in both directions a repeated background could be
centered regardless of window size, and another centered element could
be aligned with - or predictably offset from - the background. IE3.2
only repeats in the positive x and y directions, but the spec (5.3.4)
seems to imply that the image _should_ be repeated in both directions:
"The 'repeat-x' ('repeat-y') value makes the image repeat horizontally
(vertically), to create a single band of images from one side to the
> A small clarification on background/background-color would also be
> desirable. Right now I'm drawing those out to the edge of the
> but it occured to me that the background-position was w.r.t. the
> content. Is the background clipped to the padding or the content?
Isn't "The padding area uses the same background as the element itself
(set with the background properties (5.3.2-5.3.7)" pretty clear?
(Section 4, formatting model.)
> A last clarification. Each element can be addressed with a CSS
> property. Is there an implicit element for the text within a block,
> is it simply assumed that you can never set non-inherited properties
> that text without using SPAN?
I don't understand the question. Each element has many properties,
including text properties and font properties.