CSS Mnemonic
When setting margins or padding, I typically like to only use one parameter, and not use padding-left
, padding-top
, etc.
You can remember the syntax by:
padding: trbl
(pronounced padding: trouble
)
which stands for:
padding: top right bottom left
Written by Lee
Related protips
1 Response
I just memorise that they're in clockwise order, starting from top (12:00 on a clock)
over 1 year ago
·
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#