Padding applied through drag-and-drop (DnD) doesn’t work inside a module. To add padding to a div within a module, assign a class name to the div and style it using regular CSS inside the module’s style tag.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!