Forums › Forums › Search & Filter Pro › CSS to display search filter pro in the sidebar on two colums
- This topic has 4 replies, 2 voices, and was last updated 4 years, 2 months ago by
Trevor.
Viewing 5 posts - 1 through 5 (of 5 total)
-
Anonymous(Private) December 17, 2020 at 4:26 pm #270188
Hello Trevor,
I’m trying to display the widget of search and filter pro in two columns using
check-boxes in the sidebar in the homepageI tried several times using css lines but it does not work and I can’t understand why. If you can have a look thank you very much. The website is https://liberiefedeli.it
Thank you
Tommaso.searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding: 0 0px;
font-size: 16px;
column-width: 275px;
column-count: 2;
column-gap: 0px;
column-rule: px solid
}Trevor(Private) December 17, 2020 at 6:59 pm #270219I am thinking something like this:
.searchandfilter > ul > li[data-sf-field-input-type=checkbox] > ul { font-size: 12px; column-width: 90px; column-count: 2; column-gap: 5px; } .searchandfilter > ul > li[data-sf-field-input-type=checkbox] > ul > li > label { -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; padding-left: 8px; padding-bottom: 5px; } .searchandfilter > ul > li[data-sf-field-input-type=checkbox] > ul > li { display: flex; margin-bottom: 0px; padding: 0; } .searchandfilter > ul > li[data-sf-field-input-type=checkbox] > ul > li > input { margin-top: 3px; }
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)