Limit body size to screen size

Asked

Viewed 548 times

1

Well, what I wanted was to limit the size of the body so that it was the size of the screen without having to scroll. It’s because I’m developing a project where there’s a lot of white space under the footer and I have to scroll, for no reason, because there’s no content.

How can I do that?

Thank you.

  • 7

    Deep down you want to find the problem for this project and the reason you have too much white space, right? then you have to share information about that code in order to help. To take the scroll you can do body { height: 100vh; overflow: hidden; margin: 0; padding: 0; } but this is very generic.

  • You solved my problem, thank you!

1 answer

-1

create a css or better within css create a . body{} within it define margin! Margin are responsible for the delimitation of the page with that all elements that you enter will follow and will not leave the ? >margin limits.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.