.tape-block{ width: 70%; max-width: 800px; min-width: 300px; margin: 50px auto 100px; } .tape-block-content{ position: relative; width: 100%; .tape { width: 98px; height: 98px; position: absolute; z-index: 10; } .tape-tl { top: -25px; left: -25px; background-image: url(/graphics/tape-tl.png); } .tape-tr { top: -25px; right: -25px; background-image: url(/graphics/tape-tr.png); } .tape-bl { bottom: 0; left: -25px; background-image: url(/graphics/tape-lb.png); } .tape-br { bottom: 0; right: -25px; background-image: url(/graphics/tape-rb.png); } } @media screen and (max-device-width: 400px) { .tape-block { width: 70%; max-width: 250px; min-width: 200px; margin: 50px auto 100px; } .tape-block-content { .tape { width: 62px; height: 62px; position: absolute; z-index: 10; } .tape-tl { top: -20px; left: -20px; background-image: url(/graphics/m-tape-tl.png); background-size: 100%; } .tape-tr { top: -20px; right: -20px; background-image: url(/graphics/m-tape-tr.png); } .tape-bl { bottom: 10px; left: -20px; background-image: url(/graphics/m-tape-bl.png); } .tape-br { bottom: 10px; right: -20px; background-image: url(/graphics/m-tape-br.png); } } }