Show only vertical scroll bar for Html DIV using CSS

Last Reply one year ago By pandeyism

Posted one year ago

Hi ,

I want only vertical scroll for div don't want horizontal scroll..I have tried many css stop horizontal scroll but it showing.

Posted one year ago Modified on one year ago

 Hi amar,

Please refer below sample.

HTML

<div style="width: 100px; max-height: 100px; overflow-x: hidden; overflow-y: hidden;
    overflow-y: scroll;">
    I want only vertical scroll for div don't want horizontal scroll..I have tried many
    css stop horizontal scroll but it showing.
</div>

Demo