<div><span>1</span><span>2</span><span>3</span></div>
]]>font-size: 0pt;
letter-spacing: -1px;
Works fine in Firefox 3.6.4, Chrome 4.1 and Opera 10.53!
]]>thanks for this posting. i’ve had the same problem, and haven’t found a nice solution. what i ended up doing is commenting out, in html, the white space between the end of a div and the beginning of the next div.
]]>Maybe some javascript could move elements next to each other. Or maybe have php includes for certain elements. Just thoughts off the top of my head so there’s probably plenty of issues regarding these methods. It’s like ‘vertical align’, something that sounds so simple can be such a nuisance to implement.
]]>That does in fact work. The problem with this technique is attempting to rely upon a CMS/Framework/Client to remove those spaces when you’re not personally able to hand-tool the code on every page.
Also, from a personal standpoint, I shouldn’t have to eliminate white space manually when CSS exists for that purpose.
But thank you for providing this solution!
]]>(li class…)(/li)(li
class…)(/li)(li
etc
etc
e.g.
<li class….. <li
class…..<li
class….