Sometimes, we want to remove the horizontal scrollbar in a div with CSS.
In this article, we’ll look at how to remove the horizontal scrollbar in a div with CSS.
How to remove the horizontal scrollbar in a div with CSS?
To remove the horizontal scrollbar in a div with CSS, we set the overflow-x
property.
For instance, we write
overflow-x: hidden;
to hide the horizontal scrollbar.
Conclusion
To remove the horizontal scrollbar in a div with CSS, we set the overflow-x
property.