- From: Eric A. Meyer <emeyer@sr71.lit.cwru.edu>
- Date: Fri, 19 Feb 1999 09:15:52 -0500
- To: www-style@w3.org
New 'background-repeat' values ------------------------------ Since it's become more widely known that backgrounds tile in all four axes, instead of just down and to the right, there has developed a potential need for four new values. These are: repeat-up repeat-right repeat-down repeat-left The names are fairly self-explanatory. If an author wants to set the origin image in the center of an element and have it tile across the left half of the element, he could declare: background: transparent url(bg23.gif) center repeat-y repeat-left; This will cause the image to tile both directions vertically, and to the left along the horizontal axis. If, on the other hand, the author wanted to tile up and to the right, thus filling in the upper right-hand corner of the element, the declaration would be: background: transparent url(bg23.gif) center repeat-right repeat-up; Also, the addition of these elements would allow 'repeat-x' to be described in terms of being a shorthand for 'repeat-right repeat-left' and 'repeat-y' as shorthand for 'repeat-up repeat-down'. 'repeat' itself is simply a shorthand for all four. Not a major change, in my opinion, but one I wanted to get out there to see what other people thought about it. </EMeyer> -- Eric A. Meyer - eam3@po.cwru.edu - http://www.cwru.edu/home/eam3.html Editor, Style Sheets Reference Guide http://style.webreview.com/ Coordinator, CSS1 Test Suite http://www.w3.org/Style/CSS/Test/ Member, WSP CSS Technical Committee http://www.webstandards.org/
Received on Friday, 19 February 1999 09:15:55 UTC