- From: David Perrell <davidp@earthlink.net>
- Date: Tue, 10 Mar 1998 17:36:20 -0800
- To: "Style" <www-style@w3.org>, "Todd Fahrner" <fahrner@pobox.com>
Todd Fahrner wrote: >Suppose the repeating background image is 72 pixels square, showing a piece >of your favorite fruit. And suppose you've got 36 pixels of padding on your >element. If the point of origin for the tile is not the outer padding >boundary, then the fruit in the padding area will be chopped in half, any >way you slice it... Nada, nada, nada. Or, not necessarily. To maintain an appealing presentation, center the fruit: background: lime url(mango.jpg) center repeat; Thus is the fruit sliced equilaterally. But suppose you have width: 40em; padding-left: 5%; padding-right: 30%;. How to insure that the fruit remains centered behind the content if the positioning area is defined by the outer edges of the padding? David Perrell
Received on Tuesday, 10 March 1998 20:36:17 UTC