I need to write css code for site built with elementor.
<p>
<span style="color: #000000; font-family: Poppins;">
<span style="font-size: 18.6667px;">
Hi, <span style="color: #ff0000;">have a nice day!</span>
</span>
</span>
</p>
I need to make my black text white and I need to keep that red text red.
I know that I can use elementor to color it. But I need it do thought CSS for dark mode.
I tried:
p span span { color: red !important; }
But sometimes elementor do paragraph with black text in p span span
, so whole paragraph is red.
Thanks.
2
Answers
Yes you can. Here is a snippet based on your example.
To answering your comment, here is an example overriding all the elements’
CSS
, you can change it to match the result you want;You can do the following to select only the text that has an inline style of #000000