:: Forum >>

XP Style And Button Images

I use the XP CSS stylesheet, but it seems that the images on the button are not vertically-aligning?

For example:
.aw-image-vendorLook {background: url(/images/16x16/view.png); background-repeat:no-repeat;}

will result in an image aligned towards the top of the button.

What's the best way to get it centered?

- alphadog
Paul Tiseo
Friday, November 17, 2006
It is possible to adjust the image position with background-position property, for example

.aw-image-vendorLook {
background: url(/images/16x16/view.png) no-repeat center center;
}

or

.aw-image-vendorLook {
background: url(/images/16x16/view.png) no-repeat 0px 4px;
}

Alex (ActiveWidgets)
Friday, November 17, 2006
Worked like a charm. Thanks.

- alphadog
Paul Tiseo
Tuesday, November 21, 2006

This topic is archived.


Back to support forum

Forum search