0

And why is there no way to style this behavior away other than to compromise and otherwise consistent indentation scheme in the HTML?

.adjacent {

 display: inline-block;
 background-color: green;
}
<div class="adjacent">Hello</div><!--sweet-->
<div class="adjacent">world</div><!--sweet-->
<br /><br />
<div class="adjacent">Hello</div><!--ugh--><div class="adjacent">
&nbsp world</div>
Musixauce3000
  • 549
  • 1
  • 3
  • 11
  • 5
    I think this answer might help you out: http://stackoverflow.com/questions/5078239/how-to-remove-the-space-between-inline-block-elements – nimaek Dec 18 '15 at 16:21
  • Thanks, that worked. I'll use the comment method, because that allows me to keep my indentation scheme intact. – Musixauce3000 Dec 18 '15 at 16:42

0 Answers0