tetrissmalls / autotextcolor Goto Github PK
View Code? Open in Web Editor NEWA lightweight jQuery plugin that sets an element's text to either black or white automatically, depending on the background color to give the best contrast. If an element does not have a background, the parent element's background is used and so on until a background is found.
Home Page: https://coynem.com/autotextcolor/
License: MIT License