* { margin: 0; padding: 0; -webkit-user-select: none; } #box { height: 250px; border-bottom: 1px solid black; border-top: 1px solid black; margin-top: 10px; } #box img { position: absolute; height: 250px; width: 168px; }