moved from float: left to display: inline-block, which allowed to simplify css