JSFiddle - React, Tailwind, and code Playground
by lollero
HTML
<div id="cutter-wrap">
<div id="wrap">
</div>
</div>
CSS
body { padding: 40px; }
#cutter-wrap {
overflow: hidden;
float: left;
padding-left: 10px; /* Matches the width of the shadow. */
}
#wrap {
width: 300px;
height: 200px;
background: #f1f1f1;
box-shadow: 0px 0px 10px #999;
}