How to block the scroll bar of a specific div?

Asked

Viewed 397 times

0

I am creating a new site, and in it has a DIV that exceeds the Width of the body, which ends up activating the X-axis scrollbar. I wanted to know how to do so regardless of the size of this particular DIV, that it does not activate the scrollbars, but any other DIV that exceeds the body activates the bars normally.

  • otherwise I’m mistaken is overflow:None; no css

  • Yes, there is the Overflow: Hidden, when applied to Body makes the scrollbars disappear on the X and Y axes. But in my case, there is only one DIV that is overstepping the bounds, I want it, regardless of its size, does not activate scroll, but if I create another one that has the same size it activates scroll normally.

  • @Wallacemonteiro, you can’t put that div in another overflow: hidden?

  • That was it then haha. It worked here. I came across another problem, but this is already a subject for another topic I believe. Thank you very much Samir!

No answers

Browser other questions tagged

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