W3C home > Mailing lists > Public > www-style@w3.org > June 2006

Backgrounds: Suggestion for improving background positioning

From: Kelly Miller <lightsolphoenix@gmail.com>
Date: Tue, 13 Jun 2006 16:12:03 -0400
Message-ID: <448F1C13.1040007@gmail.com>
To: "www-style.w3.org" <www-style@w3.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Last night, I was thinking about good ways of doing background-position
such that different types of positioning could be used, and I thought of
an interesting idea...

Instead of changing background-position, why not leave it and add a new
property that specifies where background-position is in respect to?  For
example, by default background-position is done from the top left.  But
if you entered top right as the source and used background position, 5px
5px would push the image 5 pixels from both the top and the right side,
and using 100% for the horizontal position would be the same as 0 from
the top left.  In the same way, there could also be bottom left and
bottom right, allowing positioning images with respect to the bottom
corners.  Maybe even an entry to position from the center as well?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEjxwSvCLXx0V8XHQRAty2AJ9gbV/nEUqJwhnu2b8O6SanlFN+/gCffLDF
2FfDIZiFESVnaDRekXPMB+M=
=OKru
-----END PGP SIGNATURE-----
Received on Tuesday, 13 June 2006 20:12:11 GMT

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