Is there a way to change the color of all text on a page to a specific color?
I am dealing with user-generated content in HTML and CSS, making it impossible to control classes for specific elements.
Given the wide variation in the page's HTML and classes due to user generation, targeting individual elements with CSS is not an option.
Initially, I attempted using !important
on the body
tag as shown below, only to realize that any targeted CSS would override it.
body {
color: white !important;
}
Do I have no choice but to use JavaScript to apply an inline style to every element?