HTML&CSS is it possible to disable the right scrollbar of an html page?

Asked

Viewed 41 times

1

My html page is with many objects, but I want to let all of them so that the scrollbar doesn’t have to appear, it is possible to disable the scrollbar?

  • 1

    You just want the scrollbar to disappear or you want the page to zoom in so it doesn’t need a scrollbar?

  • Do you have this example in CSS? Where do I put this command?

  • 1

    Is this what you want? https://jsfiddle.net/9smm6L8z/

  • That’s right @Sergio! Thank you all! So q the answer is put I will give as closed!

  • 1

    @But sometimes I miss the chance...

1 answer

2


You can use overflow: hidden to hide the scroll bar(s) (s).

Taking into account that one should change only the necessary in this case you can use only overflow-y (vertical axis only) to be more specific. Applying this to the document would be

html {
    overflow-y: hidden;
}

Example: https://jsfiddle.net/9smm6L8z/

If you want to use brute force (and in rare cases it is necessary) you can use this applied to all elements like the @William Novak referred to. But to avoid, except rare cases once per life of programmer :)

Browser other questions tagged

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