Jason Knight
Apr 13, 2022

--

When using flex, beware that if the inner div is taller than the window the top gets chopped off an you can't scroll up to it.

Setting margin:auto on the top and bottom fixes this. Damned if I know why.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Responses (1)