Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8189681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:21:46+00:00 2026-06-07T03:21:46+00:00

I have <select> elements of various widths on a site. I want to position

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:21:48+00:00Added an answer on June 7, 2026 at 3:21 am

    CSS3 redefines the background-property so that you can say:

    background-position: right 13px top; 
    

    However browsersupport isn’t the best atm.

    To work around this, you can:

    • add transparent pixels to the image itself and positioning it top right
    • or calculate the position with javascript after the element’s width is known

    EDIT: You can safely use this feature now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have next problem, when I'm trying to retrieve value from xforms:select elements I
I want to select all elements that have an accesskey defined on them. I
I have a page that has various select elements. if i change a select
I have two select elements, A and B: when A's selected option changes, B's
OK, I have two HTML select elements and a button. I need to disable
I have n number of select elements in an html page that are used
In trying to select elements that have any attributes, the following throws a jQuery
How do i select elements that have my custom data attribute data-validate with jQuery
I have a form with 3 select elements. Each one, by default, has option
I have jQuery to select all font elements that are children of the element

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.