Styling individual boxes

Forums › Forums › Search & Filter Pro › Styling individual boxes

Viewing 6 posts – 1 through 6 (of 6 total)
  • Anonymous
    #236998

    Hi

    Could you tell me the css classes I need to use to change the width of individual search boxes using the select2 script please. I’d like party size to be narrower than the all locations box if possible.

    Many thanks!
    Dale

    the url is: https://www.staging1.cottages-to-rent.co.uk/test-search/

    Trevor
    #237005

    I think it would be like this:

    .searchandfilter[data-sf-form-id="13155"] .sf-field-taxonomy-partysize .select2-container {
      max-width: 150px;
    }
    Anonymous
    #237041

    Thanks. It almost works but there seems to be an inline element with width: 170px. I’ve tried overriding it with !important but it doesn’t work.

    Anonymous
    #237045

    It’s ok, I’ve sorted it. Thanks once again.

    Anonymous
    #237047

    Was using ‘max-width’ instead of ‘width’ which wasn’t overriding the element.

    Trevor
    #237051

    Thanks for letting me know. I will close this thread for now.

Viewing 6 posts – 1 through 6 (of 6 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.