Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Is it possible to set a to add a scroll-bar vertically but clip horizontally?
EDIT I see some mention on CSS3 in answers. Which browsers support this?
html { overflow-x:hidden; overflow-y:auto; }
or { overflow-y:scroll; }
{ overflow-y:scroll; }
Haven't tested but try it.
Add a comment
overflow: auto; /* For CSS 2 user agents */ overflow-x: hidden; /* For UAs implementing the CSS 3 property */
Yes.
overflow-y: auto; overflow-x: hidden;
For horizontal scrolling:
overflow-x: auto;
For vertical scrolling:
overflow-y: auto;
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.