How to make a body have a scroll

Asked

Viewed 70 times

2

How can I make a website body have scroll, so users can pull the bar down and up to see all the site information.

1 answer

2


With css, like this? 100 vh picks up and the height of 100 parts of the screen, if you pass this will put a scroll on the screen.

body{
   overflow:auto;
  height: 100vh;
  }

  • That’s right, there’s the answer. In 10 minutes I’ll accept the answer.

Browser other questions tagged

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