S
S
szQocks2021-07-22 14:15:15
css
szQocks, 2021-07-22 14:15:15

White text on a blue background?

Is it possible to set some kind of filter for the block, so that any elements or any text on this background would be white? Or any filters for the block with text so that the text field is always white?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2021-07-22
@Stalker_RED

.foo {
  background-color: blue;
  color: white;
}

But of course, styles with more specificity will win.

C
cheugy psyops, 2021-07-22
@100000000000

.tekst-sboku {
    filter:  brightness(0) invert(1);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question