Update your layout without creating new classes. Spacing helpers are useful for modifying the padding and margin of an element.
Use the playground to get a feel for what the different helper classes can do. For an explanation of how they work, see the How it works section below.
The helper classes apply margin or padding to an element ranging from 0 to 16. Each size increment was designed to align with common Material Design spacings. These classes can be applied using the following format {property}{direction}-{size}
.
속성 은 다음과 같은 간격의 유형에 적용됩니다
m
-margin
에 적용p
-padding
에 적용
방향 은 속성이 적용되는 방향입니다.
x
-*-left
과*-right
에 둘다 적용y
-*-top
과*-bottom
에 둘다 적용a
-margin
이나padding
을 모든 방향에 적용
The size controls the increment of the property in 4px intervals:
0
- eliminates allmargin
orpadding
by setting it to0
1
- setsmargin
orpadding
to 4px2
- setsmargin
orpadding
to 8px3
- setsmargin
orpadding
to 12px4
- setsmargin
orpadding
to 16px5
- setsmargin
orpadding
to 20px6
- setsmargin
orpadding
to 24px7
- setsmargin
orpadding
to 28px8
- setsmargin
orpadding
to 32px9
- setsmargin
orpadding
to 36px10
- setsmargin
orpadding
to 40px11
- setsmargin
orpadding
to 44px12
- setsmargin
orpadding
to 48px13
- setsmargin
orpadding
to 52px14
- setsmargin
orpadding
to 56px15
- setsmargin
orpadding
to 60px16
- setsmargin
orpadding
to 64pxn1
- setsmargin
to -4pxn2
- setsmargin
to -8pxn3
- setsmargin
to -12pxn4
- setsmargin
to -16pxn5
- setsmargin
to -20pxn6
- setsmargin
to -24pxn7
- setsmargin
to -28pxn8
- setsmargin
to -32pxn9
- setsmargin
to -36pxn10
- setsmargin
to -40pxn11
- setsmargin
to -44pxn12
- setsmargin
to -48pxn13
- setsmargin
to -52pxn14
- setsmargin
to -56pxn15
- setsmargin
to -60pxn16
- setsmargin
to -64pxauto
- sets the spacing toauto
간단한 예재부터 복잡한 예제까지 아래를 참고해서 앱 개발을 시작해 보세요.
Using the margin helper classes you can easily center content horizontally.
Margin can also be applied negatively at the same 1 to 16 intervals.
Vuetify comes with a 12 point grid system built using Flexbox. Spacing is used to create specific layouts within an application's content. It consists of 5 media breakpoints used to target specific screen sizes or orientations: xs, sm, md, lg and xl. The default resolutions are defined below in the Viewport Breakpoints table and can be modified by customizing the breakpoint service config.
Device | Code | Types | Range |
---|---|---|---|
Extra small | xs | small to large handset | < 600px |
Small | sm | small to medium tablet | 600px > < 960px |
Medium | md | large tablet to laptop | 960px > < 1264px* |
Large | lg | desktop | 1264px* > < 1904px* |
Extra large | xl | 4k and ultra-wides | > 1904px* |
* -16px on Desktop |
The helper classes apply margin or padding at a given breakpoint. These classes can be applied using the following format: {property}{direction}-{breakpoint}-{size}
. This does not apply to xs as it is inferred; e.g. ma-xs-2
equals ma-2
.