Home > Software design >  How to add scroll to the current div after overflowing?
How to add scroll to the current div after overflowing?

Time:06-17

I am newbie to html and css. Can you please tell me how to add scroll to a block?

I've used overflow-y: scroll, but it immediately sets scrollbar, but I want scroll after div has been fulfilled to specific height.

CodePudding user response:

You should use overflow-y: auto to get scroll after fulfilling height of an element.

CodePudding user response:

first you have to give a proper height and width of your content area where you have to overflow. eg- you have a which has more content than your area than you can use overflow tag with scroll.....

 width: #;

height: #; overflow: scroll;

  • Related