<!DOCTYPE html>
<style>
body { margin: 40px; }
.frame {
display: inline-block;
overflow: hidden;
width: 300px;
height: 150px;
border: 2px inset;
transform: scale(1.2);
}
.content { margin: 8px; }
</style>
foo<div class="frame"><div class="content">bar</div></div>