user profile image

I noticed that using the CSS aspect ratio hack was causing weird behaviour with CSS Grid (when I needed all boxes to be the same aspect ratio but fill different numbers of rows / columns) so this is a solution with CSS Variables and a sprinkling of calc() instead

This Pen is a fork of Michelle Barker's Pen Aspect ratio Grid boxes with CSS Variables.


  1. No comments yet.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.