Stupid fast inline frontend helpers (padding, margin)
Stupid fast inline frontend helpers
- include it: somewhere in your head
<link rel="stylesheet" type="text/css" href="//git.io/AAWO">
- and to add margin/padding to some element, you just append one or multiple classes to it. See picture lower.
-
meaning of abbreviation
- mt, mr, mb, ml == margin (top, right, bottom, left)
- pt, pr, pb, pl == padding (top, right, bottom, left)
Padding and margin that is predefined is in this range:
- 5, 10, 15, 20 and 30 px
You can contrib to repo here:
https://github.com/mkdizajn/massive-octo-bugfixes
cheers, k
Written by kreso
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#