If you want to create a scrolling div inside a fixed div in Webflow, the goal is to fix the outer container while making the inner container scrollable.
1. Create the Fixed Div
- Drag a new Div Block into your page.
- Set its Position to Fixed (under Layout → Position → Fixed).
- Choose where you want it fixed (Top, Bottom, etc.).
- Set Width and Height (e.g., 100% width, 500px height) so it doesn't cover the entire screen unless you intend it to.
- Drag another Div Block inside the fixed div.
- Set its Overflow property to Scroll (under Style → Overflow → Scroll).
- Set a Height (like 100% or specific pixels) so it knows how much space to use within the outer fixed div.
3. Adjust Content
- Add as much content (text, images, CMS collections) inside the scrolling div.
- When content exceeds the div’s height, scrollbars will appear automatically.
4. Double-Check Mobile Responsiveness
- Check different breakpoints to ensure the fixed container and the scrolling area behave correctly on smaller screens.
- You might need to tweak the heights (like using Min Height 50vh) depending on layout preferences.
Summary
Create a fixed-position outer div and place an overflow-scroll inner div inside it. By setting the correct height and overflow settings, the inner div will be scrollable while the outer one remains fixed on the screen.