$image-size: 300px; body{ background-color: #ccc; font-family: 'Open Sans'; } #image{ display: block; position: relative; width: calc( #{$image-size} - 2*2px ); height: calc( #{$image-size} - 2*2px ); margin: 20px; border: 2px solid #000; } #log{ display: block; position: relative; width: calc( #{$image-size} - 2*2px - 2*10px ); margin: 10px 20px; padding: 10px; border: 2px solid #555; }