Storm Storm - 21 days ago 7
CSS Question

I need to remove the Horizontal Scrollbar on an overflown <DIV>

I have defined a tag with a CSS attribute "overflow" set to "scroll". This is giving me both the vertical and the horizontal scroll bars. I only want the vertical scroll bar. What should i do?

Answer

You could try using the

overflow-y: scroll;

This will give you a vertical scroll-bar...


Using

overflow-y: auto;

will only show the scrollbar if it is necessary.