W3C home > Mailing lists > Public > www-style@w3.org > March 1998

Re: IE, NN and background-position: thpppt!

From: David Perrell <davidp@earthlink.net>
Date: Tue, 10 Mar 1998 17:36:20 -0800
Message-ID: <001401bd4c8e$18ad00a0$3d8cd9cf@davidp>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT