Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to make the child element scroll and not the body? - Kevin Powell - Community
KP-C
Kevin Powell - Community
β’
3mo ago
β’
3 replies
Ψ³Ω ΩΨ©
How to make the child element scroll and not the body?
front-end
I want all content to fit within the device height
, and if the red box has large content
, I want the scroll to be on the red box
, not the body
.
https://codepen.io/ksblupzi-the-solid/pen/XJKmQRR
CodePen
Ψ³Ω ΩΨ© Ω ΨΩ ΩΨ―
flex scroll
.
.
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time π.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to make right element height auto-resize with the parent element?
KP-C
Kevin Powell - Community / help
2mo ago
How to make a td element fit content?
KP-C
Kevin Powell - Community / help
10mo ago
How to make the links not underline and keep the same color
KP-C
Kevin Powell - Community / help
9mo ago
anchor positioning broken with body scroll bar
KP-C
Kevin Powell - Community / help
4w ago