Question

I use bootstrap selectpicker (http://silviomoreto.github.io/bootstrap-select/)

I am trying to enlarge the select box size by doing:

<select class="selectpicker input-lg">...</select>

If I add "input-lg" to the select input, selectpicker overrides it and the select box isn't resized.

How to overcome this problem?

See http://www.bootply.com/107358# for example.

Was it helpful?

Solution

You can use the style option on the selectpicker..

style:'btn-lg'

http://www.bootply.com/127059

OTHER TIPS

If you like to add it inline then use data-style="input-lg btn-default" or data-style="btn-lg btn-default"

<select name="" class="form-control input-lg selectpicker" data-title="Select Time" data-style="input-lg btn-default">...</select>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top