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

  • Home
  • SEARCH
  • 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 8007559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:52:07+00:00 2026-06-04T17:52:07+00:00

I need to center text in a select list cross device and browser. This

  • 0

I need to center text in a select list cross device and browser. This can’t be done with text-align center, so instead ive used javascript to calculate the required text indent value and apply it. This fiddle shows everything working fine:

http://jsfiddle.net/mnu6D/8/

I cant put my actual code online. It works fine for desktop browsers, iPhone, iPad and Android, but the Blackberry it looks like the text isn’t indented enough. I cant work out why this is happening and without firebug type tools ive no idea how to solve this. Thanks

  • 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-04T17:52:10+00:00Added an answer on June 4, 2026 at 5:52 pm

    Solution was a weird one. When I unhid the span thats used to put the text into to be measured I can see its the correct font size. However setting the font size again made the js calculation work.

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

Sidebar

Related Questions

I need to center text in a select list. There is no cross browser
I need to center text in a select list. The only example ive found
I need to horizontally center text in a select list, specifically for android and
I need help with this, I can't see where is the problem. When I
I need to center some text inside a <div> or <span> tag. I've set
I need to center an element both vertically and horizontally and the element can't
I need to center grid view horizontally in my android layout.xml. I have searched
I need to center a CSS menu that has an unknown width. I found
I need to find a point where a line (its origin is ellipse' center)
I am trying to center a Window to the owner window. I also need

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.