Padding Percentage with CSS

Did you ever wanted to create a dinamic padding between items?

Today I learned it's posible. All you have to do is to add a X% in the padding value.

I don't know how exactly does it and maybe it is not very accurate but works.

Code

padding:0 25%;

Try it your self 😉

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*