[Project_owners] buttons with images

HJ van Rantwijk bugs4hj at aim.com
Sun Sep 17 19:44:04 EDT 2006


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

HJ van Rantwijk wrote:
> Eric H. Jung wrote:
>> Hi,
> 
>> I have two buttons with images:
> 
>> <vbox>
>> <button style="list-style-image: url('up.gif')" command="moveUpCmd"/>
>> <button style="list-style-image: url('down.gif')" command="moveDownCmd"/>          
>> </vbox>
> 
>> Screenshot: http://img158.imageshack.us/img158/1816/capture917200691138pmkj5.jpg
> 
>> (I don't remember why I'm not using the image attribute, but there was a reason). The labels on each button are different lengths but the images are the exact same sizes. How can I align the labels with each other instead of them being centered? I can't use a fixed number of spaces between the images and labels because the length of each word varies depending on locale.
> 
>> Thanks for any ideas,
>> Eric
> 
> <button pack="end" ...
> or
> -moz-box-pack: end;

Oops, make that:

.button-text {
  text-align: right;
}

/HJ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFFDfnkRrb6S73JMeYRApx+AJ40JvJqVXQEh/+/WGHitGqcTZ/B5wCgntlW
JzZn70rFcU65puhmxlKS6hQ=
=knrD
-----END PGP SIGNATURE-----


More information about the Project_owners mailing list