Forums › Forums › Search & Filter Pro › Dropdown Box Exceeding Columns
- This topic has 13 replies, 2 voices, and was last updated 8 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 19, 2016 at 3:16 am #39848
Hi – I have 3 columns and a search box in each. The columns were made with Visual Composer. The droprown tag box on my search form is going all the way across the page into the next column. Is there a way to limit the length of it? I do have some long tags. Thanks!
Trevor(Private) March 22, 2016 at 10:31 am #40136Hi
Your reply came back via the no-reply email box, but I have it now. That might have added a bit of a delay, sorry for that. If you can reply here on the forum itself that will speed up my replies 😉
OK, the issue is the way that browsers render select boxes, and constraining the width is hard. For you, some custom CSS will fix it, but remember that this code will ONLY work where the search form is vertical (for ths reason I have restricted the code to your form ID:
#search-filter-form-6905 .sf-field-tag label {display: block !important;}
If you don’t want it to quiet fill the column, you might want to also have something like this:
#search-filter-form-6905 .searchandfilter select.sf-input-select {max-width: 95%;}
Let me know how you get on with this.
Trevor(Private) March 22, 2016 at 4:58 pm #40209It is not working because the rule above it in the custom css box has an error. That rules looks like this in your code:
#give-donation-level-button-wrap& gt;li { float: none; display: inline-block; }
I have had to add a space there so that you can see the code
And should be:
#give-donation-level-button-wrap>li { float: none; display: inline-block; }
And the stylesheet is broken from then on down, which means it doesn’t read what you just entered.
-
AuthorPosts