简体   繁体   中英

How to change the bootstrap multiselect dropdown height and font size?

I am trying to do a multiselect dropdown using bootstrap similar to the demo which is mentioned in the link below.

http://www.aspsnippets.com/Articles/Multiple-Select-MultiSelect-DropDownList-with-CheckBoxes-in-ASPNet-using-jQuery.aspx

I am able to change the width by using buttonWidth property. But I could not find anything to change the height of the button. I also would like to change the font size and font. Kindly help me in finding a way to change the height and font of dropdown.

If you have same code as in aspsnippets.com. Then you can add this style in the head section (Replace X with number ):

button.multiselect {
    height: Xpx;
    font-size: Xpx;
}

Hi Indira you could achieve the change in height & font by simply applying the adding following css

.multiselect .dropdown-toggle .btn .btn-default {
    height: 62px;
    font-family: cursive;
}

Change them according to your needs .

Note: Please be sure that it would not affect any other element on your page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM