How do I remove the horizontal scrollbar in a div?

Ravi picture Ravi · Dec 10, 2010 · Viewed 266k times · Source

When I set overflow: scroll, I get horizontal and vertical scrollbars.

Is there a way to remove the horizontal scrollbar in a div?

Answer

basarat picture basarat · Dec 10, 2010
overflow-x: hidden;