css - why do modern browsers still put spaces between inline block if there is whitespace -
if have markup this:
<div class="inlineblock">one</div> <div class="inlineblock">two</div> <div class="inlineblock">three</div>
and css this: .inlineblock{ display: inline-block; }
you spaces between elements. 4px of space. unless markup looks this:
<div class="inlineblock">one</div><div class="inlineblock">two</div><div class="inlineblock">three</div>
now, know why?
what technical reason "good" browsers still this, latest firefox, chrome, , opera @ time of posting still this. assume there technical reason behind it, otherwise have been fixed now?
thanks!
this should do.
spaces between inline elements no different spaces between words.
if don't want that, use block elements, or set font size zero.
Comments
Post a Comment