function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MattMet86MattMet86 

apex:selectlist overlfowing - won't show scroll bar

I am trying to get a horizontal scroll bar to show up on my selectList but can't get it to work. Hoping someone here has faced similar issue and can advise.  Having the text scroll to the next line would also work but i don't know how to do either. 

VF Page:
<style>

        #nav {
        width:15%;
        float:left;
        padding:5px;
        color:black;
        }
        
    </style> 

<div id="nav">
            <apex:pageblock tabStyle="License__c" >
                <apex:pageBlockSection title="Options:" columns="1" collapsible="false">
                    <apex:inputCheckbox value="{!showAll}">
                        Show All Licensed
                        <apex:actionSupport event="onchange" rerender="thePage" status="tbloading"/>
                    </apex:inputCheckbox>
                </apex:pageBlockSection>
                <apex:pageBlockSection title="Licenses:" columns="1" collapsible="false">
                    <apex:outputPanel >
                        <apex:selectList id="statelist"  
                                         value="{!States}" 
                                         multiselect="true" 
                                         size="10" 
                                         style="width: 100%;overflow-x:auto;overflow:auto;">
                            <apex:selectOptions value="{!items}"/>
                        </apex:selectList>
                    </apex:outputPanel>
                </apex:pageBlockSection>
                <apex:pageBlockSection columns="2">
                    <apex:commandButton action="{!stateFilter}" rerender="thePage" title="Filter" value="Filter" status="tbloading">
                        <apex:param name="offsetsize" assignTo="{!offsetsize}" value=""/>
                        <apex:param name="AccRendered" assignTo="{!AccRendered}" value="FALSE"/>
                    </apex:commandButton>
                    <apex:commandButton action="{!resetFilter}" rerender="theForm" title="Reset" value="Reset" status="tbloading">
                        <apex:param name="offsetsize" assignTo="{!offsetsize}" value=""/>
                        <apex:param name="AccRendered" assignTo="{!AccRendered}" value="FALSE"/>
                        <apex:param name="bcsPaging" assignTo="{!bcsPaging}" value="TRUE"/>
                        <apex:param name="showAll" assignTo="{!showAll}" value="FALSE"/>
                    </apex:commandButton>
                </apex:pageBlockSection>
            </apex:pageblock>
        </div>

Currently looks like this:
User-added image