Center search results horizontally

Forums › Forums › Search & Filter Pro › Center search results horizontally

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

    Hi, everybody.

    I was wondering if you could help me out with some CSS tricks to get this.

    I have put the S&F pro shortchode in horizontal as indicated in the documentation. With this CSS:

    .searchandfilter[data-sf-form-id=”1428″] > ul > li {
    display: inline-block;
    vertical-align: top;
    padding: 0 20px;
    }

    But, my search engine has several fields, and sometimes it falls on a second line. This second line is always aligned to the left, and I would like to put it in the middle.

    I’ve made a masterpiece of art with Paint that I think is better explained. https://ibb.co/mRWTB01

    I don’t know much about CSS, and it’s probably very easy, but I haven’t managed to do it.

    Thanks in advance!

    Translated with http://www.DeepL.com/Translator (free version)

    Trevor
    #244656
    This reply has been marked as private.
    Anonymous
    #244855
    This reply has been marked as private.
    Trevor
    #244933

    Try this:

    .searchandfilter > ul {
      text-align: center;
    }
    Anonymous
    #245042

    It’s works perfectly!!

    Thank you very much Trevor!

    Trevor
    #245046

    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.