Bootstrap: <select multiple> overflows

Created on 27 Jul 2016  路  4Comments  路  Source: twbs/bootstrap

Operating system and version: Ubuntu 14.04
Browser and version: Chrome 52.0.2743.82

Options overflow on multiple selects if there are at least 5 options.
http://codepen.io/anon/pen/GqGdbw
https://s3.amazonaws.com/upload.screenshot.co/33f65bef97

If am not mistaken it is caused by the overflow: visible; declaration set by normalize.css on selects. Possible solution is to upgrade it to the latest version, the declaration was removed in this commit: https://github.com/necolas/normalize.css/commit/e4a7827199b61e1cdcabe807044b3a2384bba924.

confirmed css v4

Most helpful comment

I have switched the:

button,
input,
select {
  overflow: visible;
}

to

button,
input {
  overflow: visible;
}

select {
  overflow: scroll;
}

and find the issue corrected.

All 4 comments

So, is the solution here to fork normalize, or to upgrade it to the latest version?

I'd be happy to try the upgrade, if that's the consensus ...

I have switched the:

button,
input,
select {
  overflow: visible;
}

to

button,
input {
  overflow: visible;
}

select {
  overflow: scroll;
}

and find the issue corrected.

select should have overflow: auto, not scroll

@adamreed90, just removing select from the rule seems to work for me. Is there a particular reason you need the second rule?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leomao10 picture leomao10  路  3Comments

alvarotrigo picture alvarotrigo  路  3Comments

fohlsom picture fohlsom  路  3Comments

ziyi2 picture ziyi2  路  3Comments

devfrey picture devfrey  路  3Comments