Inherit and add value to multi-value CSS property?
As we all know, some CSS properties can have multiple values simultaneously. A good example is CSS3's box-shadow. However, sometimes it may be desirable for a class or ID to add to these values. For example, if I have an element with an inset box-shadow value, I may want to add an outer glow to the box with an .active class. Unfortunately, this overwrites the previous value. Is it possible to inherit a value and simultaneously add to it? Below is a non-working example of what I am hoping can be accomplished. Notice how the end-result does not glow. div { background-color: #09F; border-radius:
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.