BR automatically inserted before headline
-
Hello,
I try to insert an image (icon) on the left of a h2 headline.
The problem is that WordPress automatically inserts a BR in between the <img> element and the <h2> element, which gives me no chance to float my icon to the left of my headline.See code below:
<img src="https://www.example.com/wp-content/uploads/2014/08/myIcon-32.png" alt="" width="32" height="32" style="float:left;" /><h2>More time</h2>
=> WordPress will generate a BR element before the <h2> element.What would be a workaround? Should be pretty common having an icon to the left of headlines.
Thank you for any help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘BR automatically inserted before headline’ is closed to new replies.