I have <select> elements of various widths on a site. I want to position a background image 13px from the right-edge of the select width. In pseudo-code:
select {
background-image: url(../images/select-arrow.png),
background-position: center (right - 13px);
}
How would I do this in CSS?
CSS3 redefines the background-property so that you can say:
However browsersupport isn’t the best atm.To work around this, you can:
EDIT: You can safely use this feature now.