I need to remove the Horizontal Scrollbar on an overflown

后端 未结 5 642
醉话见心
醉话见心 2021-01-12 02:50

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 scrol

5条回答
  •  时光说笑
    2021-01-12 03:00

    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.

提交回复
热议问题