---
title: "Comment by Chris Bongers on \"4 Quickest way to center element in CSS\" | Hashnode"
description: "Hey Rahul, for option one you need the 100vh as well, else the vertical height will be only how tall your children are."
url: "https://hashnode.com/posts/4-ways-to-center-css/5fb48111b589f1618af9e089/comment/5fb4aaa0a73df361ab711d16"
---

[Discussion](https://hashnode.com/posts/4-ways-to-center-css/5fb48111b589f1618af9e089)

Comment [4 Quickest way to center element in CSS](https://hashnode.com/posts/4-ways-to-center-css/5fb48111b589f1618af9e089)

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 18, 2020](https://hashnode.com/posts/4-ways-to-center-css/5fb48111b589f1618af9e089/comment/5fb4aaa0a73df361ab711d16)

Hey Rahul, for option one you need the 100vh as well, else the vertical height will be only how tall your children are.

[Rahul](https://hashnode.com/@RAHULISM)

[Nov 18, 2020](https://hashnode.com/posts/4-ways-to-center-css/5fb48111b589f1618af9e089/comment/5fb4aaa0a73df361ab711d16#reply-5fb4c8c3a73df361ab711f94)

Ah yes. Thanks.
