12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Jul 13, 2020

CSS Grid for Oxygen’s Galleries

Sridhar Katakam

This members-only tutorial provides the steps to replace Flexbox-based CSS code for Oxygen's image galleries with CSS Grid-based CSS so that all the images have the same dimensions.

Before:

After:

We shall change the number of gallery columns from 4 on larger resolutions down to 3 from 991px and below to 2 from 767px and below to 1 from 479px and below.

Step 1

Add a class of say, grid-gallery to the galleries that you wish to make (all the images) uniform.

Step 2

Add this CSS at Manage > Stylesheets:

This is a premium members-only content.

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

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right