re: A Modern CSS Reset VIEW POST


How about adding an overflow-x: hidden to the body?


Not a great idea! This'll kill position: sticky for all the child elements.

The mental leap for that is a tough one for me. Why isn't my position: sticky; working?! Oh, because some parent element has hidden X overflow? 🤯

Yup. I completely forgot about that bugger. Definitely not helpful to be set as a global style in that context.


Just be careful with CSS and contain within something else overflow-x: hidden; as needed. Generic reset rules about body overflow just paper over cracks

code of conduct - report abuse