-
-
Save quasel/f1310b017c9134cda46d1a8ef2e46037 to your computer and use it in GitHub Desktop.
Grid layout for the Beaver Builder theme blog in one easy step
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (min-width: 992px) { | |
/* BLOG LAYOUT TO CONVERT IT TO A GRID with 2 blog posts across the row */ | |
.fl-archive .fl-post{width:48%;float:left;margin-left:4%;} | |
.fl-archive .fl-post:nth-child(odd){margin-left:0;clear:both;} | |
} | |
@media only screen and (min-width: 1200px) { | |
/* BLOG LAYOUT TO CONVERT IT TO A GRID with 3 blog posts across the row */ | |
.fl-archive .fl-post{width:30%;float:left;margin-left:5%;} | |
.fl-archive .fl-post:nth-child(odd){margin-left:5%;clear:none;} | |
.fl-archive .fl-post:nth-child(3n+1){margin-left:0;clear:both;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment