Is there a selector for the text inside this div without wrapping it in the <p>
or maybe with jquery / javascript to find all the text and wrap it in the <p>
?
<div class="content"> Some content in here. <img src="image" alt="image" /> </div>
I canβt apply extra HTML markup and want to style the text differently with the image.
I would either wrap the text <p>
to become:
<div class="content"> <p>Some content in here.</p> <img src="image" alt="image" /> </div>
Or can I somehow style it with CSS, selecting only text without HTML markup?
uriah source share