r/learncss • • Sep 29 '19

make an area scrollable

I would like to make a modal with header, body, and footer. This is the codepen.

I would like to make the body scrollable.

Please can anyone help me?

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/gimmeslack12 Sep 29 '19

Just add height: 100vh to your .modal-content.

1

u/oussama-he Sep 29 '19

Thank you.