• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Clean 3 Column Custom Field Lists xenforo 2

Admin

Well-Known Member
Staff member
Administrator

Want clean 1-3 columns for different devices?​

Display one on smaller devices:​

1600409423567.png


Two on medium:​

1600409496471.png



And three on large:​


1600409632575.png


Add this code to extra.less​

CSS:
.listInline--customField
{
@media only screen and (max-width: 600px) {
columns: 1;
-webkit-columns: 1;
-moz-columns: 1;
}
@media only screen and (min-width: 600px) {
columns: 2;
-webkit-columns: 2;
-moz-columns: 2;
}
@media only screen and (min-width: 1050px) {
columns: 3;
-webkit-columns: 3;
-moz-columns: 3;
}
}

Note: Play with the min-width to make the columns fit your site. What I mean by that is drag them around and see if you have an item that is too long that breaks into 2 lines as opposed to staying in 1; you will have to find that point so it stays in a straight line. If your lists tend to be larger than the examples above, you might only want 1 or 2 columns—adjust as required to look good on your site.
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top