Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Span new line span

<span>A</span>
<span>V</span>

Causes a space between these letters, how is this calculated excatly? As oppose to

<span>A</span><span>V</span>
like image 991
user1477535 Avatar asked Jul 16 '12 00:07

user1477535


1 Answers

Whitespace between inline elements is compressed (or converted if it's something other than spaces) to a single space and displayed.

The W3C specification has more information:

This layout may involve putting space between words (called inter-word space), but conventions for inter-word space vary from script to script. For example, in Latin scripts, inter-word space is typically rendered as an ASCII space (&#x0020;).

like image 179
ThinkingStiff Avatar answered Oct 18 '22 11:10

ThinkingStiff