---
title: "Discussion on \"An Easy Way to Center a DIV both Vertically and Horizontally\" | Hashnode"
description: "Discussion on \"An Easy Way to Center a DIV both Vertically and Horizontally\". This is a common problem that beginners face which seems to have no particular solution because there are many ways to achieve this. For almost every project I did, when starting out, I was searching the internet whenever I wanted to centre a div bot..."
url: "https://hashnode.com/posts/an-easy-way-to-center-a-div-both-vertically-and-horizontally/5faf1c4b7fcc8d387fc0d653"
---

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

Discussion

# [An Easy Way to Center a DIV both Vertically and Horizontally](https://blog.maryojo.me/an-easy-way-to-center-a-div-both-vertically-and-horizontally?utm_source=hashnode&utm_medium=feed)

This is a common problem that beginners face which seems to have no particular solution because there are many ways to achieve this. For almost every project I did, when starting out, I was searching the internet whenever I wanted to centre a div bot...

Nov 13, 2020 · 5 min read · blog.maryojo.me  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css-flexbox](https://hashnode.com/tag/css-flexbox)

## Written by

[Mary Ojo](https://hashnode.com/@maryojo)

@maryojo

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

Software Developer

Design Engineer | WTM Ambassador

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
