---
title: "Discussion on \"CSS 101: Centering elements\" | Hashnode"
description: "Discussion on \"CSS 101: Centering elements\". I keep seeing developers complain about continuously googling how to center elements each time they try to achieve this. Well, I'm here to solve your problem. I'm going to show you different ways to center elements in css and when to use them.\nBanter..."
url: "https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e"
---

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

Discussion

# [CSS 101: Centering elements](https://david-aji.hashnode.dev/css-101-centering-elements?utm_source=hashnode&utm_medium=feed)

I keep seeing developers complain about continuously googling how to center elements each time they try to achieve this. Well, I'm here to solve your problem. I'm going to show you different ways to center elements in css and when to use them. Banter...

May 27, 2020 · david-aji.hashnode.dev  
Updated May 28, 2020  
Read the article

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

## Written by

[David Aji](https://hashnode.com/@Ajiva)

@Ajiva

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

Front End Developer

I am a developer with a passion to create amazing solutions that people use.

## Responses 4

Markdown supported · ⌘↵ to post

[Ukeme Ukofia](https://hashnode.com/@Ukemzy)

[Oct 7, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f7db54deba2f86adc0b699d)

Helped a lot. Thanks a bunch

[David Aji](https://hashnode.com/@Ajiva)

[Oct 7, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f7db54deba2f86adc0b699d#reply-5f7db956eba2f86adc0b69c8)

I'm glad I could help

[Tantoluwa Heritage Alabi NB](https://hashnode.com/@TantoluwaAlabiHerita)

[Aug 4, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f295476e7ab9713fa20811f)

thanks a lot. it worked

[David Aji](https://hashnode.com/@Ajiva)

[Aug 4, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f295476e7ab9713fa20811f#reply-5f2973a2e7ab9713fa2082b1)

I'm glad I was able to help

[Enobong Jane](https://hashnode.com/@enoh)

[Jul 24, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f1acabcdad5695e77de6efb)

I just solved my problem,thank you!!

[David Aji](https://hashnode.com/@Ajiva)

[Jul 24, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f1acabcdad5695e77de6efb#reply-5f1adc1bb33fc4616a1b3b76)

You're welcome, glad I could help

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Jul 10, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f08cec72ba0933a583f1f78)

Thank you for writing this useful article. As usual, I forgot how to center a div then I remembered you published an article about it some weeks back and decided to check it out.

I can't wait to read more of your articles.

[David Aji](https://hashnode.com/@Ajiva)

[Jul 14, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f08cec72ba0933a583f1f78#reply-5f0d639702afcd6941857738)

I'm really glad I could help. It's really encouraging because it shows that even the things we may think people will not need can always come in handy.

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Jul 14, 2020](https://hashnode.com/posts/css-101-centering-elements/5ece1434957247ce0a4ec14e/comment/5f08cec72ba0933a583f1f78#reply-5f0d840852084a76c4ac0d85)

[David Aji](https://hashnode.com/@Ajiva) Oh yes, I totally agree. Thank you.
