Last Updated: February 25, 2016
·
1.181K
· geetotes

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

1 Response
Add your response

I just memorise that they're in clockwise order, starting from top (12:00 on a clock)

over 1 year ago ·