I'm facing a challenge with aligning an icon with text to its right in a multi-lined content. Currently, the setup looks like this:
<p style="text-align: left;">
<i class="fa fa-example-icon" style="margin-right: 20px;"></i>
Text that is multi-lined.
</p>
On the first line, everything seems aligned perfectly:
|icon| Text that is multi-lined.
However, as soon as the text wraps onto the next line, the alignment gets disrupted:
|icon| Text that is multi-lined and now
it actually comes to the next line.
My goal is to achieve the following consistent alignment for all lines:
|icon| Text that is multi-lined and now
it actually comes to the next line.
What would be the most effective approach to maintain seamless alignment across multiple lines of text? I have some temporary solutions, but I aim to implement a proper solution.