Re: [css3-background] alternatives to background-origin

Alan Gresley wrote:

> Then authors could just write:
> 
> 
> background-position: 0 auto auto 0; /* left top right bottom */
> background-origin: content;
> 
> 
> And to clipped the top and left of the image all one needs to do is:
> 
> 
> background-position: -100px auto auto -100px;
> 
> 
> This would position the background image outside the content box, thus 
> clipping the top and left portion of the image by 100px.


That should have been.


Then authors could just write:


background-position: 0 0 auto auto; /* left top right bottom */
background-origin: content;


And to clipped the top and left of the image at the content edge all you 
  do is give the background-position-left and background-position-top 
negative values:


background-position: -100px -100px auto auto;
background-origin: content;


This would position the left and top edge of a background image outside 
the content box, thus clipping the top and left portion of the image by 
100px.


Alan

Received on Wednesday, 21 May 2008 04:06:53 UTC