I've just spent a bit of time looking at how background-position works
when expressed as a percentage:

  background-position: 90%;

and I'm wondering why it works the way it does.

Here's the best way I can describe the effect of (90%, x-axis)
positioning with percentages: "to position the image such that the point
90% across the image is aligned with the point 90% across the element".

There's something rather counter-intuitive about that (it's even hard to
describe!), and I've tried to explain it in teaching people about CSS
and found that people are rather baffled by it.

Does anyone know why it was created that way, and/or can you tell me if
there's some very useful thing this rule allows you to do? That is, as
opposed to a simpler rule like "image is offset that amount to the left"
which is what I assumed when I first came across it.


Please consider the environment before printing this e-mail.

The information contained in this email and any attachment is confidential and
may contain legally privileged or copyright material.   It is intended only for
the use of the addressee(s).  If you are not the intended recipient of this
email, you are not permitted to disseminate, distribute or copy this email or
any attachments.  If you have received this message in error, please notify the
sender immediately and delete this email from your system.  The ABC does not
represent or warrant that this transmission is secure or virus free.   Before
opening any attachment you should check for viruses.  The ABC's liability is
limited to resupplying any email and attachments.


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to