I would like to change the background-color of an element in HTML using CSS when the element is hovered on. Here is what I have:
h1 { background-color: rgb(100,60,0); } h1:hover { /* increase background-color red component by 50 */ /* new background-color would be rgb(150,60,0) */ } I can't figure out how to achieve that.
Also, I have seen some suggestions online about doing it with LESS or SASS but I would really prefer a pure-CSS solution.
Thank you very much.