This members-only tutorial provides the steps to replace Flexbox with CSS Grid for styling Oxygen's Easy Posts grid output without using media queries.


  1. This article covers the default preset, Grid - Image - Standard.
  2. CSS Grid may not be fully supported in IE. I have not tested this solution in IE or Edge. See the support here.
  3. The out of the box break points for Easy Posts are 1120px and 768px where the posts get 50% and 100% width respectively. With the solution in this tutorial, it is going to be 1119px and 759px. These will of course dynamically change depending on the (horizontal) grid-gap and padding values we are going to set for .oxy-posts.

Advantages of this method:

  1. Beautiful, minimal and progressive CSS.
  2. Solves this problem gracefully.

Step 1

Easy Posts > Templates > Template CSS.


%%EPID%% .oxy-posts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

%%EPID%% .oxy-post {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  margin-bottom: 3em;
  width: 33.33%;
  padding: 1em;


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: