Home › Forums › CSS › Odd spacing on 'before'. › Reply To: Odd spacing on 'before'.
September 18, 2016 at 3:14 am
#245662
Beverleyh
Participant
It’s because new lines in HTML markup are interpreted as a space, so…
<span class="list">
<a href="LINK">Link</a></span><br />
…will generate the same output as…
<span class="list"> <a href="LINK">Link</a></span><br />
i.e., with a space between the opening span and the anchor.
However there is no such space here;
<span class="list"><a href="LINK">Link</a></span><br />