Here’s a problem that strikes me as fundamentally inane: for the most part, excess spaces and returns are ignored in HTML unless contained within <pre> brackets.  However, sometimes—as is the case with elements displayed inline—the line break between </span> and <span> will be represented as an extra space….lame.

Solutions include: 

  1. not using line breaks (sloppy / confusing code):
    <span></span><span></span>
  2. having breaks inside of the element:
    <span></span
    ><span></span>
  3. commenting out the line break:
     <span></span><!--
    --><span></span>
  1. errorcheck posted this