October 25, 2024
Chicago 12, Melborne City, USA
CSS

How to make a div scrollable but the rest of the page stay put? (CSS)


I have a div with a list of items that sometimes exceeds the page’s height. I want the div to be scrollable while the content on the rest of the page stays put.

I tried adding "overflow-x: scroll" to the div, but that didn’t do anything. Thanks!



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video