Skip properties in CSS shorthand for padding, margins, etc.
2 answers
The correct way to skip properties is not to use the shorthand version:
padding-bottom: 2em;
padding-right: 1em;
It's not as elegant as:
padding: same 1em 2em same;
but it just doesn't exist in pure CSS. If you are using server side extensions like LESS or SASS there might be a syntax for that; if not, it could be added with relative ease.
+5
source to share