<style>
div {
  background-color: red;
  float: left;
}
span {
 display: inline-block;
 background-color: green;
 height: 50px;
 width: 50px;
 vertical-align: 0.5;
}
</style>
<div><span></span></div>
