Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase height of .ms-list #267

Open
shahzadthathal opened this issue Mar 31, 2017 · 2 comments
Open

Increase height of .ms-list #267

shahzadthathal opened this issue Mar 31, 2017 · 2 comments

Comments

@shahzadthathal
Copy link

Hi,

I have multiple select box on a page but I want to increase only once select box height.
How can I do this?

Thanks

@Fae-Bell
Copy link

I fixed this problem with the following:

HTML:

<select cssclass="custom-css-class" class="select-multiple-placement" multiple="multiple">
...
</select>

JS:

$('.select-multiple-placement').each((index, elem) => {
       $elem = $(elem);
       $elem.multiSelect({ cssClass: $elem.attr('cssclass') }) 
    });

CSS:

.custom-css-class.ms-container .ms-list {
    /* Custom Height here */
    height: 80px;
}

@LinzardMac
Copy link

Why not use CSS ID's or simply an alternative class name for each?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants