http://codepen.io/anon/pen/LGdqyp
HTML:
<span>First</span>
<span>Second</span>
CSS:
body {
padding: 0;
margin: 0;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
span {
display: inline-block;
width: 50%;
margin: 0;
border: 1px solid #000;
}
I have applied box-sizing, margin set to zero. The two elements are supposed to align next to each other. Why don't they?