How to hide the scrollbar

Asked

Viewed 86 times

1

How to hide the ScrollBar with the CSS? I’m not making it.

I’ve tried several editors, but I can’t. What I do?

  • It is always good to include in the question the code that you have tried to do and that is not working, and include more details for clarity. For example: vc did not specify which scrollbar to hide (there are 2).

3 answers

1

If it’s the viewport scrollbar do so with CSS:

body{
overflow: hidden;
}

for an HTML element:

elemento, .classe, #id {
overflow: hidden;
}

/* BARRA HORIZONTAL */
body{
overflow-y: scroll;
overflow-x: hidden;
}

for an HTML element:

elemento, .classe, #id {
overflow-y: scroll;
overflow-x: hidden;
}

0

.sweat{ overflow: Hidden; }

-1

overflow-y: hidden

or

overflow-x: hidden

Browser other questions tagged

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