Is there a way to specify a CSS property is skipped in the shorthand, with padding, border, margin, etc.
Like padding: <skipped> 1em 2em
instead of:
padding-right: 1em
padding-bottom: 2em
The correct way to skip properties is to not use shorthand:
padding-bottom: 2em;
padding-right: 1em;
It's not as elegant as:
padding: same 1em 2em same;
but it simply doesn't exist in pure CSS. If you use server-side CSS extensions such as LESS or SASS, there may be syntax to do that; if there isn't, it could be added with relative ease.
I think your best bet is to assign the value auto
though that will only set it to any default [browser] value it may have, I'm guessing that for padding it will reset it to 0 [depending on the element].
Other than that, no.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With