Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've replicated the issue you reported. I ran it in IE7, IE8, and IE8 with compatibility mode turned on, and all three browser instances revealed the same issue. The <code>&lt;select&gt;</code> overflow goes beyond the frame of the browser. </p> <p>This could be, however, as designed. If the overflow was contained within the browser, the user would have to scroll through the options to choose from, and if the option they desired is beyond the height of the browser window, they would have to use the horizontal scrollbar on the browser to scroll down to finish viewing the rest of the options in the <code>&lt;select&gt;</code> box. </p> <p>You had mentioned it does not happen in IE7, but in my test it did. I have not tried this in FF, Chrome, Safari or Opera yet, but I would assume that if all modern browsers share this "glitch", then it is not a design flaw but rather intentional, to make searching a large <code>&lt;select&gt;</code> box easier when viewing a web page in a browser window that has not been maximized to fit the width of the entire screen. </p> <p>Why make the user use two scrollbars when they can simply use one? I agree it looks a little silly, but I believe there's some logic behind it.</p> <p><img src="https://i.stack.imgur.com/yW6v4.png" alt="screenshot of selectbox ie8 glitch"></p> <p>Hope this helps.</p> <p>EDIT:</p> <p>Just to add. Another reason this maybe intentional, is if overflow is hidden on the overall page. See second screenshot:</p> <p><img src="https://i.stack.imgur.com/ozxhR.png" alt="selectbox with overflow hidden"></p> <p>as you can see I added the following css:</p> <pre><code> &lt;style type="text/css"&gt; /* &lt;![CDATA[ */ html { overflow: hidden; } /* ]]&gt; */ &lt;/style&gt; </code></pre> <p>which eliminated the browser's native horizontal scrollbar. If the <code>&lt;select&gt;</code> box did not overflow beyond the frame of the browser window, the user may not be able to view all the options. </p> <p>In short I don't think there is a workaround for this. This is not a CSS issue, but rather a limitation of control over native functions in the browser. The same way you can't force whether a user opens a link in a new tab or a new window, you can't force the select box to stay within the browser's frame. Some things are out of our control.</p> <p>Regards,</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload