To create a fixed div that stops scrolling in Webflow, you can follow these steps:
Step 1: Select the element you want to make fixed. This can be a section, a div block, or any other element.
Step 2: In the Style panel, go to the Position dropdown and select "Fixed".
Step 3: Once you select "Fixed", you will notice that the element snaps to the top left corner of the screen. This is because the default position for a fixed element is the top left corner. You can adjust the position by using the margins, padding, and the transform properties.
Step 4: To make the fixed element stop scrolling, you need to add custom code to the site. Click on the head tag of your project in the Navigator panel and then click on the "Custom Code" section on the right-hand sidebar. In the "Custom Head Code" section, paste the following CSS code:
```
```
Make sure to replace ".fixed-element" with the class or ID name of your fixed element. If you haven't assigned a class or ID to it, you can do so by clicking on the element and adding a class or an ID in the Settings panel.
Step 5: Once you've added the custom code, the fixed element should no longer scroll when you preview or publish your site. It will remain in place even when the user scrolls the rest of the page.
That's it! You have now created a fixed div that stops scrolling in Webflow. Remember to adjust the styles, dimensions, and positioning of the div to achieve the desired effect.