Relative Content

Tag Archive for htmlcsscolorsbackground-color

Dynamically change colours with CSS so background and text colour aren’t clashing

I’m facing the problem that users can change background colours for HTML components which sometimes conflict with text colours they can’t change (or more generally, background and text colour are visually too similar). As a result, the text may become invisible (or difficult to see) if those colours are visually close enough.