Styles for all Globally pseudo element like :before?

I want to write a styles for all :before and after elements during an accessibility mode so i am not getting it.

For example: if we wanna write style for all elements we use- *{property:value;}

like that i want to write a style for all the :before and after elements a style .

Please help out.

I think you can do it like this:

::before, ::after {

It might require using a *, i.e.

*::before, *::after

Honestly, I can’t think of a single case where this would be useful. You should be using a class for this sort of thing.