If I have the following code:
<div class="inline"></div>
<div class="inline"></div>
.inline {
display: inline-block;
height: 100px;
width: 100px;
background: red;
}
You'll notice that there seems to be some default white space still around the divs
. And the only way I can fix this is by doing this:
<div class="inline"></div><div class="inline"></div>
Which makes my markup look untidy. Can I fix this just in CSS?