Explore this Code
Here is the issue at hand:
https://i.sstatic.net/Fp6u2.png
My HTML code looks like this:
<ol class="steps">
<li>
Select elements are displaying correctly
<br>
<select>
</select>
</li>
<li>
Textareas are showing up properly
<br>
<textarea></textarea>
</li>
<li>
However, when text spans multiple lines, there is a large gap between the first two lines. You can also resize the output window to see the impact.
</li>
</ol>
I have tried using custom ordered bullet lists. I attempted replacing the textnodes with <span>
s with no success. Replacing them with <p>
added an unexpected line break between li::before
and <p>
.
Any ideas on how to resolve this issue?
UPDATE: Here is the updated solution. I removed the br
style rule and applied position absolute as a workaround.