From: Alessandro P. <al...@am...> - 2010-08-12 07:44:36
|
Il giorno mer, 11/08/2010 alle 20.47 +0000, Neil Graham ha scritto: > An alternative is to use Top,Bottom,Left,Right instead of X and Y. But > you then have to do decide what happens if Top _and_ Bottom or Left _and_ > right are specified. Why not go the whole way and make it css-style? :) silly-walks.jpg { left: 10px; right: 100px; top: 50%; bottom: 20%; width: 64px; height: 64px; background-color: #aaa; } right would "overwrite" left becaus it comes after it, and bottom overwrites top for the same reason. bottom: 20% means (as in Gtk) "the point 20% from bottom of the image shold be 20% from the bottom of the screen". This way writing left:50%;top:50%; places the image at the very center of the screen (and not shifted down and right). It is extendable, so if you want (in the future) to implement a rounded box you can add border-radius: 5px; border-color: #000; border-width: 1px; Maybe a little bit overkill for placing icons, but it could be used for the whole styling, as gnome is doing, so maybe one day it will be integrated in gtk+. Bye. |