🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Is it possible to change the text color of an element based off the background-color with css?

Started by
0 comments, last by Officer_Erik_K 1 year, 4 months ago

I am wondering if it is possible to change the text color of an element based on its background color. Like if the background color were a lighter color then the text would be a darker color and if the background color were a darker color then the text would be a lighter color.

If it is possible to do so then please describe, in detail, how to do it.

– Erik P. Kountzman - Owner - of - Airent Animation Entertainment --

This topic is closed to new replies.

Advertisement