How to only target text content of element?
I have a div that contains a number of spans as its children and also a bit of text. The text is not surrounded by any tags, something which I cannot change.
How can I target (i.e. style) only the text contents of the div, but leave any children of the div untouched?
(I hope I'm not overlooking something very obvious here...)
How can I target (i.e. style) only the text contents of the div, but leave any children of the div untouched?
(I hope I'm not overlooking something very obvious here...)
