- This topic has 1 reply, 2 voices, and was last updated 5 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Displaying filter options horizontally
Hello,
How can I display the filter options horizontally?
Depending on categories, the filter options can take significant space on a page and I would like to display it horizontally on the top of a page on some pages. However, I don’t see an option to do that. Please help.
Thank you!
Best regards,
Natalia
You would need to create your own CSS for the form, using CSS media queries to make the CSS responsive. For example, you can wrap your CSS for the desktop display (horizontal) so it does not affect the mobile view, but you need to discover the responsive breakpoint of your theme (change the 992px to suit). For example, like this:
@media (min-width: 992px) {
.searchandfilter[data-sf-form-id="1234"] {
display: inline-block;
vertical-align: top;
padding: 0 20px;
}
}
Where 1234 needs to be changed to match your form ID.
For more custom CSS examples, there are many snippets in the forum:
https://support.searchandfilter.com/forums/search/data+form+sf+id+searchandfilter