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 6634867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:58:51+00:00 2026-05-25T22:58:51+00:00

The problem I am currently facing is really hard to describe, but maybe you

  • 0

The problem I am currently facing is really hard to describe, but maybe you can the idea from the following screenshots. The setup is a select box (width limited via css) and some option elements inside. If one option’s width is greater than the width of the select box, the whole thing gets rendered like this by default:

Select box expanding to the right

And this is how I want it to be displayed (the red box being the options):

Select box expanding to the left

Any idea how I can achieve this?

EDIT: Here is a fiddle with the markup I am using: http://jsfiddle.net/dCmZ2/

  • 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-05-25T22:58:51+00:00Added an answer on May 25, 2026 at 10:58 pm

    You don’t have much control over a browser’s render of a select box. Just think about mobile devices like the iPhone. Here the select list takes over half the phone screen and is custom rendered. If you want this level of control then you will need to roll your own custom select box.

    div:hover ul { display: block; }
    div ul { /* custom css for placement */ }
    <div>
       <ul><li>1</li><li>1</li></ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently facing a problem which I can not resolve and I really don't
I'm currently facing new problem with operators. Using following code, I want to make
I'm currently facing a weird problem while executing a command from my bash script.
I'm fixing a program but I'm facing a problem and I cant really realize
Currently we are facing following Problem in our Application: Around 40 % of the
I'm currently facing a performance problem with creating POCO objects from my database. I'm
I´m currently facing a really weird (at least for me) problem regarding the configuration
I am currently facing a problem. How to get the latest selected value from
Im currently facing the problem that when i try to set focus on some
I'm currently facing this problem with ruby on rails 3, devise and facebook oauth.

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.