---
title: "Discussion on \"Different ways to center a div\" | Hashnode"
description: "Discussion on \"Different ways to center a div\". \"How to center a div\", the iconic question for frontend interviews. Although this question seems quite easy but can turn into hell if asked to do it in different approaches. So in this article, I am going to tell you about the different ways of cente..."
url: "https://hashnode.com/posts/different-ways-to-center-a-div/6298f8cc448447175b8de373"
---

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

Discussion

# [Different ways to center a div](https://chanchal16.hashnode.dev/different-ways-to-center-a-div?utm_source=hashnode&utm_medium=feed)

"How to center a div", the iconic question for frontend interviews. Although this question seems quite easy but can turn into hell if asked to do it in different approaches. So in this article, I am going to tell you about the different ways of cente...

Jun 2, 2022 · 3 min read · chanchal16.hashnode.dev  
Read the article

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

## Written by

[Chanchal Rajput](https://hashnode.com/@chanchal16)

@chanchal16 · Maharashtra,India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
