---
title: "Discussion on \"Centering a div with tailwind - grid vs flex box\" | Hashnode"
description: "Discussion on \"Centering a div with tailwind - grid vs flex box\". with key concepts, usecases, and examples"
url: "https://hashnode.com/posts/centering-div-with-grid-vs-flex-box-in-tailwind/694369ee5e3efa97ab48ad28"
---

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

Discussion

# [Centering a div with tailwind - grid vs flex box](https://rizanb.hashnode.dev/centering-div-with-grid-vs-flex-box-in-tailwind?utm_source=hashnode&utm_medium=feed)

with key concepts, usecases, and examples

Dec 18, 2025 · 2 min read · rizanb.hashnode.dev  
Read the article

-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#css-grid](https://hashnode.com/tag/css-grid)
-   [#css-flex-box](https://hashnode.com/tag/css-flex-box)
-   [#css-grid-vs-flexbox](https://hashnode.com/tag/css-grid-vs-flexbox)

## Written by

[Rizan Bhandari](https://hashnode.com/@rizanb)

@rizanb · Kathmandu, NP

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

developer, I build things and help others write better code

I am a fullstack developer. I share things that can make you a better developer. No paywalls.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
