Re: Difference between background-position and background-origin.

On 08/14/2015 03:36 AM, Arup Rakshit wrote:
> Hi,
>
> I am not able to understand the difference between background-position
> and background-origin. Would you guys help me to understand this with
> a suitable example ?

background-position specifies a position within a box
   http://www.w3.org/TR/css3-background/#the-background-position

background-origin specifies which box to use for the positioning
   http://www.w3.org/TR/css3-background/#the-background-origin

See http://www.w3.org/TR/css3-background/#introduction for an illustration
of the various boxes.

Let me know if, after reading the spec, it's still unclear.

~fantasai

Received on Friday, 14 August 2015 20:31:57 UTC