Skip to content

Instantly share code, notes, and snippets.

@quasel
Forked from grantambrose/style.css
Last active October 1, 2016 11:54
Show Gist options
  • Save quasel/f1310b017c9134cda46d1a8ef2e46037 to your computer and use it in GitHub Desktop.
Save quasel/f1310b017c9134cda46d1a8ef2e46037 to your computer and use it in GitHub Desktop.
Grid layout for the Beaver Builder theme blog in one easy step
@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