Forums › Forums › Search & Filter Pro › CSS for dropdown
Tagged: CSS combobox
- This topic has 8 replies, 2 voices, and was last updated 6 years ago by Anonymous.
-
Anonymous(Private) November 7, 2018 at 3:03 pm #193029
Couldn’t find this on the forums (at least not a concise answer!)
Can we target the a dropdown with CSS or something to increase the height?
I have the form horizontally right now, with an input text, a dropdown (data combobox) and a submit:
https://staging.ianmartin.com/I can target the padding on the input text and the button to adjust the size, but the dropdown in the middle is dramatically smaller so it looks funny.
Is there some nice easy CSS that I’m missing to target the combo box to adjust height to match the other fields? Thanks!
Scott
Anonymous(Private) November 7, 2018 at 3:28 pm #193036Yes – so I had to totally shrink the other two in order to make them the same size as the dropdown combobox (middle) because try as I might, I couldn’t target the dropdown and make it bigger … so I made the other two smaller! A bit of a jenky fix, but I do what I have to.
Can you suggest CSS to lift it about 2px and/or make it bigger?
Thanks, Trevor!
Scott
Trevor(Private) November 7, 2018 at 3:54 pm #193046Try this:
.searchandfilter .select2-container .select2-selection--single .select2-selection__rendered { line-height: 50px; } .searchandfilter .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; } .searchandfilter .select2-container--default .select2-selection--single { border-radius: 7px; height: 50px; }
Trevor(Private) November 7, 2018 at 4:20 pm #193053Where you have this:
.searchandfilter .select2-container--default .select2-selection--single { border-radius: 7px; height: 40px; }
Make it this:
.searchandfilter .select2-container--default .select2-selection--single { border-radius: 7px; height: 40px; position: relative; top: -2px; }
-
AuthorPosts