SharePoint Prevent Scrolling – SharePoint Stack Exchange

I have created a landing page where all of the elements fit in the window without having to scroll. But inconveniently, there is a bunch of white space at the bottom of the page and it will scroll all the way down for no reason.

I have all of my divs within the body element (pretty much everything is in the body element), so I tried:
body, html { margin: 0; padding: 0; height: 100%; overflow-y: hidden; } and of course it did nothing. I have found several posts about scrolling, but not related to SharePoint. I tried applying these fixes and of course nothing happens in SharePoint, but when I go to JSFiddle… it magically works.

If my code is needed, please let me know and I will add it. But I do not see why I would need to post it when it works on Fiddle, but not SharePoint. SharePoint is so buggy I hate it.