Looking for a solution to rearrange a span element after an image within automatically generated HTML.
Sample HTML:
<span>closed</span> <img alt="Click to reset" src="xxx" class="">
Currently, the span appears before the img in the code snippet provided.
The desired output is to have the img render first, followed by the span like this:
<img alt="Click to reset" src="xxx" class=""> <span>closed</span>
Although unable to directly edit the HTML, wondering if there is a CSS workaround solution?
Edit
It should be noted that both elements are enclosed within a <div>
.
For example:
<div><span>closed</span> <img alt="Click to reset" src="xxx" class=""></div>