Skip to content
This repository was archived by the owner on Nov 29, 2019. It is now read-only.

wuifdesign/css-margin-padding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

172c726 · Apr 19, 2017

History

7 Commits
Dec 10, 2015
Apr 19, 2017
Nov 10, 2015
Nov 10, 2015
Nov 10, 2015
Dec 10, 2015
Nov 10, 2015

Repository files navigation

Margin and Padding Classes for CSS

Screen Sizes:
  • xs: <768px
  • sm: <992px
  • md: <1200px
Margin Sizes:
  • xs: 4px
  • sm: 8px
  • default: 15px
  • lg: 30px
  • xl: 60px
Padding Sizes:
  • xs: 4px
  • sm: 8px
  • default: 15px
  • lg: 30px
  • xl: 60px

Maring Classes

Usage

The default margin classes are:

.m-0 (none)
.m-0-auto (0 auto)

.m-t (top)
.m-b (bottom)
.m-t-b (top + bottom)
.m-l (left)
.m-r (right)
.m-r-l (right + left)
.m-a (all)

For all classes except "0" and "0-auto" you can add the size at the end:

.m-t-xs
.m-b-xs
.m-t-b-xs
.m-l-xs
.m-r-xs
.m-r-l-xs

Available sizes are: xs, sm, lg, xl

Responsive

You can add the size of the screen after the "m" in the class name. This will take effect for all screens smaller than this.

.m-md-0
.m-md-0-auto
.m-md-t
.m-md-t-b-xl
...

Padding Classes

Usage

The default padding classes are:

.p-0 (none)

.p-t (top)
.p-b (bottom)
.p-t-b (top + bottom)
.p-l (left)
.p-r (right)
.p-r-l (right + left)
.p-a (all)

For all classes except "0" you can add the size at the end:

.p-t-xs
.p-b-xs
.p-t-b-xs
.p-l-xs
.p-r-xs
.p-r-l-xs
.p-a-xs

Available sizes are: xs, sm, lg, xl

Responsive

You can add the size of the screen after the "p" in the class name. This will take effect for all screens smaller than this.

.p-md-0
.p-md-t
.p-md-t-b-xl
...

About

Margin and Padding Classes for CSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published