Andy-set-studio / modern-css-reset

A bare-bones CSS reset for modern web development.

Home Page:https://hankchizljaw.com/wrote/a-modern-css-reset/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about the `min-height: 100vh;`

CyrilKrylatov opened this issue · comments

Hi Andy,

Your modern CSS Reset is awesome. We needed a new approach on the whole reset thing and you did a great job.

Anyway I may have an issue / question about the min-height: 100vh; you put on the body element.

I was reading a few days ago this article that we should not use this on mobile because of address bar and all. Here you have an other article about that too.

That's not an issue per say, I'm curious on your thoughts about this subject.

Thank you for your time.

Cheers! ✌️

Howdy!

I put this rule in because the probability that your body will be shorter than the viewport is pretty minuscule. I guess if your thing is going to be the exact height of the viewport, remove the rule from the reset 👍