eva21 Posted May 20, 2009 Share Posted May 20, 2009 <head> <style type="text/css"> div { height : 70px; overflow: auto; } </style> </head> <div> <? echo("<Select size=3 MULTIPLE style=width:'235px' style=font-size:'9pt' onchange='getMedia(" . $rows['id'] . ")' name='" . $rows['id'] . "_t[]' id='" . $rows['id'] . "_t'>"); This doesnt do what i want. I have a listbox, and the words get really long, and I need a horizontal scroll bar in order to let the user see what is all there. Please help! Quote Link to comment https://forums.phpfreaks.com/topic/158960-having-a-horizontal-scroll-bar-for-a-list-box/ Share on other sites More sharing options...
dbrimlow Posted May 20, 2009 Share Posted May 20, 2009 Try adding "visibility: visible;" after overflow:auto; That's how we did it in the old days (haven't used that in ages). Quote Link to comment https://forums.phpfreaks.com/topic/158960-having-a-horizontal-scroll-bar-for-a-list-box/#findComment-838419 Share on other sites More sharing options...
Axeia Posted May 20, 2009 Share Posted May 20, 2009 style=width:'235px' style=font-size:'9pt' Well that doesn't work is quite logical as you seem to be making up a new syntax. (Or at least I'm not familiar with it and neither is the Konqueror browser). Styling selects is a pain in the rear (well all forms are hard to style) so try this: <div style="width: 235px; overflow: auto;"> <select size=3 MULTIPLE style='font-size: 9pt'> <option>Man this option is really really long, it doesn't even fit! on this line and scrolling is required..</option> </select> </div> Looks a bit odd in firefox with the scrollbar on the side, and it seems to be unkillable. You could use the title attribute on the options to provide the full description as a tooltip instead of making it scrollable. Quote Link to comment https://forums.phpfreaks.com/topic/158960-having-a-horizontal-scroll-bar-for-a-list-box/#findComment-838486 Share on other sites More sharing options...
eva21 Posted May 20, 2009 Author Share Posted May 20, 2009 None of your ideas work. It feels like ive tried anything. Is it an IE thing? Does anyone know how to make it work? Im completely stuck here. Quote Link to comment https://forums.phpfreaks.com/topic/158960-having-a-horizontal-scroll-bar-for-a-list-box/#findComment-838527 Share on other sites More sharing options...
Axeia Posted May 20, 2009 Share Posted May 20, 2009 Don't have access to internet explorer atm (side affect from running linux on 3 systems) so I'm guessing it is as the last solution worked for me in Opera, Firefox and Konqueror (konqueror is webkit, so I assume it would work in safari/chrome as well). Quote Link to comment https://forums.phpfreaks.com/topic/158960-having-a-horizontal-scroll-bar-for-a-list-box/#findComment-838529 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.