Margins
Applies to: View
Many elements inherit from View and therefore can have margin applied to them. Below are the utility classes for adding margins to your views.
The format for specifying margins is .m{sides}-{size}
.
Where the sizes is one of the follow:
t
- topb
- bottoml
- leftr
- rightx
- left and righty
- top and bottomblank for all
And the size is one of the following:
0
- none1
- 0.25rem2
- 0.5rem4
- 0.75rem8
- 2rem12
- 3rem16
- 4rem24
- 6rem32
- 8 rem64
- 16rem
Examples
This would provide a 10 unit margin on all sides.
This would provide a 10 unit margin on the top.
Last updated