DEV Community

Cover image for CSS Grid Layout (responsive)
Tufail Shah
Tufail Shah

Posted on • Originally published at codepen.io

2

CSS Grid Layout (responsive)

In this post I'll be showing how we can use Css- GRID BOX to create web and mobile layout easily and efficiently.

CSS Grid Layout is the most powerful layout system available in CSS. It is a 2-dimensional system, meaning it can handle both columns and rows, unlike flexbox which is largely a 1-dimensional system. You work with Grid Layout by applying CSS rules both to a parent element (which becomes the Grid Container) and to that element’s children (which become Grid Items).
Try resizing the window to check for responsive effect.

Try resizing the window to check for responsive effect.
Check my Pen and give suggestion where and how we can achieve the required layout without pulling our hair.

Check my CodePen and follow me on Twitter, and encourage me to deliver more CSS, JS, HTML awesomeness, tips and tricks.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay