DEV Community

Alaa Courdova
Alaa Courdova

Posted on

easy way to memorize Shorthand Property for padding and margin

you want to write the shorthand for the padding property but you can't memorize it ?

I created a gif with hand gesture I use it each time to know the right order of the property

Image description

as you can see move your hand clockwise top right bottom left and that is the right order for the shorthand

hope it helps

Top comments (2)

Collapse
 
raniahany profile image
rania-hany

Ohh I have always been struggling with memorising the order of these values 🥹
Thank you so much I will always remember this from now on 👌🏻

Collapse
 
alaa_courdova profile image
Alaa Courdova

glad that you find it useful 🪻