---
title: "Discussion on \"Centering a div made easy with Tailwind CSS\" | Hashnode"
description: "Discussion on \"Centering a div made easy with Tailwind CSS\". 2 ways to center an html elements using Tailwind CSS"
url: "https://hashnode.com/posts/centering-a-div-made-easy-with-tailwind-css/61f571524bea13573e62e112"
---

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

Discussion

# [Centering a div made easy with Tailwind CSS](https://khazifire.hashnode.dev/centering-a-div-made-easy-with-tailwind-css?utm_source=hashnode&utm_medium=feed)

2 ways to center an html elements using Tailwind CSS

Jan 29, 2022 · 2 min read · khazifire.hashnode.dev  
Read the article

-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#html5](https://hashnode.com/tag/html5)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#css](https://hashnode.com/tag/css)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Dan M. Kazimoto](https://hashnode.com/@khazifire)

@khazifire · Thailand

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

Creative Frontend Developer

Creative Frontend Developer || Nextjs/Reactjs, Tailwind

## Responses 1

Markdown supported · ⌘↵ to post

[Non Wiz](https://hashnode.com/@nonwiz)

[Jan 30, 2022](https://hashnode.com/posts/centering-a-div-made-easy-with-tailwind-css/61f571524bea13573e62e112/comment/61f5e1f36bb59d5767db7422)

Short and concise!

[Dan M. Kazimoto](https://hashnode.com/@khazifire)

[Jan 30, 2022](https://hashnode.com/posts/centering-a-div-made-easy-with-tailwind-css/61f571524bea13573e62e112/comment/61f5e1f36bb59d5767db7422#reply-61f6040f6bb59d5767db75a1)

thank you, glad you liked it
