Aaron Crowder avatar

Self-taught full-stack dev | Lover of technology | Husband of one and father of two | I like food | Black Lives Matter

Pronouns: He/Him, They/Them.

CSS

Using vh with calc In CSS

I often have need to build layout’s that vary depending on the content put in them. I can’t always count on that content being the same (cough CMSs cough). It’s just one of those things you have to do. One thing I’m having to do a lot though, is making the body of a page take up a certain amount of space so that the footer doesn’t look weird. In the past I’ve used JavaScript to make the footer take up the remaining space on the page if the content didn’t take up enough.