---
title: "Discussion on \"How to Center a Div with Flex box and CSS Grid\" | Hashnode"
description: "Discussion on \"How to Center a Div with Flex box and CSS Grid\". Centering a div with flex and grid"
url: "https://hashnode.com/posts/how-to-center-a-div-with-flex-box-and-css-grid/6421e492b9402b9445d99b19"
---

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

Discussion

# [How to Center a Div with Flex box and CSS Grid](https://colthedeveloper.hashnode.dev/how-to-center-a-div-with-flex-box-and-css-grid?utm_source=hashnode&utm_medium=feed)

Centering a div with flex and grid

Mar 27, 2023 · 2 min read · colthedeveloper.hashnode.dev  
Read the article

-   [#div](https://hashnode.com/tag/div)
-   [#center-a-div](https://hashnode.com/tag/center-a-div)
-   [#flexbox](https://hashnode.com/tag/flexbox)
-   [#flex-css](https://hashnode.com/tag/flex-css)
-   [#grid](https://hashnode.com/tag/grid)

## Written by

[Aremu Olakunle Umaru](https://hashnode.com/@colTheDeveloper)

@colTheDeveloper · Oyo, Lagos

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

Web developer

Aremu Olakunle is a software engineer who has a passion for technical writing and building web and mobile apps. He is skilled in programming languages such as JavaScript and TypeScript. His stacks are MERN, Next.js, and React-Native. He is constantly expanding his knowledge in the field of software development. With his expertise in both coding and writing, He can effectively communicate complex technical concepts to a wide audience.

## Responses 1

Comments are turned off for this post.

[Ola Vierling](https://hashnode.com/@tommy1536)

[Mar 28, 2023](https://hashnode.com/posts/how-to-center-a-div-with-flex-box-and-css-grid/6421e492b9402b9445d99b19/comment/6422d25c40255888e0eb1d46)

Very proud of you
