Is there a way to dynamically change CSS values based on current CSS values?
For example, instead of explicitly setting different values like this:
.test{
margin-top:100px;
}
.test:hover{
margin-top:90px;
}
Is it possible to achieve the same effect with something like this?
.test{
margin-top:100px;
}
.test:hover{
margin-top:(-10px);
}
Thank you in advance for clarifying. I hope my question is clear.
By the way, I am not interested in a JavaScript solution as I already know how to do that. I am simply curious if this can be accomplished using only CSS.