Given a <pre>
containing multiple <span>
s, how would you remove one of those <span>
s without leaving an empty row?
span {
background-color: blue;
}
#text2 {
display: none;
}
<pre>
<span id="text1">SOME RANDOM TEXT</span>
<span id="text2">SOME RANDOM TEXT</span>
<span id="text3">SOME RANDOM TEXT</span>
</pre>
I've tried switching to a <div>
and using white-space
but that doesn't get the same result.