<div class='wrap'>
<div class='box'></div>
</div>
.wrap {
height: 100px;
width: 100px;
padding: 1px;
background: linear-gradient(to right, red, orange);
> .box {
height: 100%;
width: 100%;
background: white;
}
}
html {
background: lightgray;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.