-
Search Results
-
Hi, I would like my filters and checkboxes to be horizontal across the page.
I have tried the following css:
.searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding: 0 20px;
}This moves the filters side by side however the checkboxes are still vertical.
I would like the checkboxes to be horizontal (next to each other).
This is my page:
https://www.redelephantreps.com/hotels-portfolio-test/Also, the page ‘jumps’ slightly when using the filter. Is there a way to stop this?
Many thanks
MaryI’ve set up a Case Study filter, as described in https://support.searchandfilter.com/forums/topic/speed-considerations-your-advice-please/
See here: https://d.xmarksthespot.co.uk/treasure-hunt-case-studies/ for the page. There are 3 versions of the same filter as I’m experimenting with various placement options.
My goal is to save screen space. On desktop/tablet the filter could go in a toggle (this isn’t ideal for the user but I’ve got it working) or (preferably) stay in the main body, but be horizontal instead of vertical. I’ve got the vertical version working.
*Is there an easy way to get a horizontal version?* (I saw a previous thread in Support, but didn’t quite understand and some of the replies were private from recollection). I plan to use vertical layout in a sidebar on a Woocommerce filter – if that’s relevant.
Another option is a sidebar for desktop/tablet – especially if/when filter choices expand. I’ve got this working too.
My preferred option is an off-canvas sidebar across all devices. Is this something that can be done as of now?
If not, I think I read in a Support thread that this may be considered in v3. Any firmer timescales yet?
Looking forward to your reply.
Topic: Horizontal Styling of lists
I know this question has been asked many times before. I’ve tried to implement the solutions I’ve found and have been unable to get it to work. I’m using a child theme of Astra with WP Bakery. Everything is at the latest version.
On NovaScotiaFood.com I have a search form here. I want it to be horizontal.
I can get it to work in Inspector simply by going to the first li element and changing display to inline-block. But it doesn’t work when I input the CSS via Customizer. I have also tried adding it to my stylesheet via FTP. I am using Siteground Optimizer caching and Cloudflare. The SG cache has been cleared repeatedly and Cloudflare has been put in development mode. I have tried a hard refresh of the browser numerous times too (I’m in Chrome).
I’ve tried the following bits of CSS:
#search-filter-form-2018 > ul > li { list-style: none!important; display: inline-block!important; padding: 0 20px; }.searchandfilter[data-sf-form-id="2018"] { list-style: none!important; display: inline-block!important; padding: 0 20px; }.searchfilter ul li { list-style: none!important; display: inline-block!important; padding: 0 20px; }None of these are working. Can you please help?