Obviously background colors themselves are not inherited, but you can overlay different background colors with different opacity levels to get different effects. I was wondering if it is possible to get the ‘resultant background color’ of an element using jquery (the color that actually gets rendered).
I tried just doing $().css('background-color')
, but for obvious reasons this didn’t work.
New contributor
Justin Davis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1