Say I have a complex style sheet with lots of interacting styles, etc.
For a specific class, I want to override padding-top and padding-bottom without changing the values of padding-left and padding-right (which may be different for different elements that get the class I specify).
Is there a way to do this with a reduction, something like
.special {
padding: 10px initial 5px;
}
which leaves the previous values, or should I write my css as follows:
.special {
padding-top: 10px;
padding-bottom: 5px;
}
Thank.
source
share