I’ve got a form in which I have placed the form elements within individual DIV tags. I’m trying to use SELECT multiple="multiple" size="5", but it’s only displaying ONE option (this is in IE10 and FF and Chrome.)
I’ve kind of hackishly fixed it by giving it a style=“height:80px;” attribute.
I’m not happy with that kind of coding. Any suggestions as to what might cause only one option to appear, even though I set the size to 5?
The div that it is in has a height, so the div isn’t “crushing” it to just one option.
I just stuck that code in jsbin.com and it displayed five entries for me in Chrome so it definitely works - my best guess would be that it is something else in the page interfering.
Yup, you nailed it. I couldn’t think of what else could have been doing this, at first. Then I checked a CSS file.
Someone else slipped a fixed height to all SELECT tags into the CSS file - when I synched down, it wasn’t noticeable until I tried using the MULTIPLE attribute.
Said someone else has been thoroughly scolded. Sorry for bringing this up. Should have checked the CSS files, first.