---
title: "Discussion on \"What CSS grid can do that flex cannot?\" | Hashnode"
description: "Discussion on \"What CSS grid can do that flex cannot?\". Recently I had a problem where I had to make a responsive UI. On mobile, it has one column and on desktop two. Sounds simple initially, and it did to me as well.\n\n\nMobile\n\n\nDesktop\n\n\n\n\nMy initial thought was just to use flex with 2 columns. However, ..."
url: "https://hashnode.com/posts/what-css-grid-can-do-that-flex-cannot/60bf073dfffc4c13b9cda459"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What CSS grid can do that flex cannot?](https://blog.ernestas.app/what-css-grid-can-do-that-flex-cannot?utm_source=hashnode&utm_medium=feed)

Recently I had a problem where I had to make a responsive UI. On mobile, it has one column and on desktop two. Sounds simple initially, and it did to me as well. Mobile Desktop My initial thought was just to use flex with 2 columns. However, ...

Jun 8, 2021 · 2 min read · blog.ernestas.app  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css-grid](https://hashnode.com/tag/css-grid)
-   [#layout](https://hashnode.com/tag/layout)
-   [#design](https://hashnode.com/tag/design)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)

## Written by

[Ernestas Kvedaras](https://hashnode.com/@ekvedaras)

@ekvedaras

  
[View profile](https://hashnode.com/@ekvedaras)

## Responses 1

Markdown supported · ⌘↵ to post

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Jun 8, 2021](https://hashnode.com/posts/what-css-grid-can-do-that-flex-cannot/60bf073dfffc4c13b9cda459/comment/60bf35e0fffc4c13b9cda95d)

Just like you, I always jump into using Flexbox first before switching to Grid (when I realize I couldn't achieve what I wanted.)

Insightful tip [Ernestas Kvedaras](https://hashnode.com/@ekvedaras). Going forward, I'd think more about the implication of using a flexbox or grid before jumping into writing the code. 😃
