Limit displayed options in a dropdown using css

fiestars

New Member
Is there any css property by which i can limit the displayed options in a dropdown.I know that setting size = 'value' in select limits the displayed options in drpdown to that value. Is this achievable using css.\[code\]<select size="5"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option><option>8</option><option>9</option><option>10</option><option>11</option><option>12</option></select>\[/code\]Using this the no of options visible will be limited to 5. Can this be done in css.Actually I have a lot of dropdowns in my application and adding size to each of them is very time consuming and i may need to change the no of items displayed afterwards.
 
Back
Top