Hey Lorenza,
-
You don’t need a custom code to disable scroll in a div. There’s the overflow property for that:
-
Custom code as this one (css styling) do not go into the custom div attributes but in the
<head>
or before</body>
as you wrote you did first. -
If you’ll share a read only link with your questions it will be easier to answer specifically for your project’s problem