Margin and Padding are two examples of the Gap class.
It allows you to set a fixed value for each side of an object: Top, Left, Bottom, Right.
1. Uniform padding:
2. Side-specific paddings:
3. Multiple side-specific paddings
The same settings can be applied using CSS, which is cleaner and must be your default choice.
You can also set the value of padding and margin based on percentage or a dynamic expression. For example: