span {border: solid red 2px; margin-right: 20px;} span.a {margin-right: -20px;} div {width: 100px; border: solid red 2px; margin: auto;}