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)