0

Given that I have this div

<div class="icon-text">
    <span class="icon-star"></span>
    Mytext
</div>

The "Mytext" is given automatically the id #text

Since I'm not able to change the DOM, how can I target the "Mytext" value with CSS?

Barnabas
  • 139
  • 10
  • 1
    Currently, CSS cannot target text nodes but you can use JavaScript to wrap it inside an element and then target it. – m4n0 Dec 26 '22 at 12:36

0 Answers0