---
title: "Discussion on \"Fixing Flex Scroll Height Overflow with Margin Auto\" | Hashnode"
description: "Discussion on \"Fixing Flex Scroll Height Overflow with Margin Auto\". Hello CSS enthusiasts!\nGuess what happened to me today? While working on the modal, I needed the content to be perfectly centered vertically and need to have a scrolling effect where I set a specific height (e.g., 80vh). However, things got a bit tri..."
url: "https://hashnode.com/posts/fixing-flex-scroll-height-overflow-with-margin-auto/65abe8e4049adda5bb4565e2"
---

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

Discussion

# [Fixing Flex Scroll Height Overflow with Margin Auto](https://blog.jobins.jp/fixing-flex-scroll-height-overflow-with-margin-auto?utm_source=hashnode&utm_medium=feed)

Hello CSS enthusiasts! Guess what happened to me today? While working on the modal, I needed the content to be perfectly centered vertically and need to have a scrolling effect where I set a specific height (e.g., 80vh). However, things got a bit tri...

Jan 20, 2024 · 3 min read · blog.jobins.jp  
Read the article

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

## Written by

[Nirajan Basnet](https://hashnode.com/@nirajanbasnet)

@nirajanbasnet · Kathmandu, Nepal

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

Creative coder

Exploring the new tools and techniques on frontend development. Loves to meet up with new people and participate in the community. I do interesting stuff on codepen https://codepen.io/nirazanbasnet

## Responses 1

Markdown supported · ⌘↵ to post

[Faizal](https://hashnode.com/@faizal741)

[Dec 11, 2024](https://hashnode.com/posts/fixing-flex-scroll-height-overflow-with-margin-auto/65abe8e4049adda5bb4565e2/comment/67593cae3405c4f5d5617ee2)

Really helpful! Thanks for sharing this bro!
