Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro limit select box width

Viewing 8 posts - 1 through 8 (of 8 total)
  • David setyawan
    #205231

    hello, how to limit the option select box width?

    i want to limit the option width within select box width

    i’ve tried to limit the option width but no luck

    Trevor Moderator
    #205236

    Are you able to send me a live link/URL to your search page so I can take a look?

    David setyawan
    #205794
    This reply has been marked as private.
    Trevor Moderator
    #205808

    The problem with what you ask is that the options will then be cut off (not visible on the right). The box is that wide because of the options. The alternative is to make the select box at the top wider.

    David setyawan
    #205926

    yes you are right, i want to make the box following select box width. how?

    David setyawan
    #205930

    i set the width on select box to make it responsive on mobile. that’s why i need to limit the width

    Trevor Moderator
    #205932

    You want the options made narrow? This is not possible using CSS. As explained in this third party help page:

    https://stackoverflow.com/questions/36676701/set-width-at-option-of-select-box

    As an alternative, you could apply Select2 to the boxes (which would make them work better I think on mobile anyway). See this post for instructions:

    https://support.searchandfilter.com/forums/topic/how-can-i-customize-the-form-with-css/#post-199584

    David setyawan
    #205951

    i see, well thank you for your help. you can mark this as solved

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘limit select box width’ is closed to new replies.