TAG
CSS
Result
Run
License
<div>border-box</div> <div>padding-box</div> <div>content-box</div>
div { display: inline-block; width: 150px; height: 150px; border: 10px dashed #FF0000; padding: 30px; background: #FFFF00; font-weight: bold; font-size: 20px; } div:nth-child(1) { background-clip: border-box; } div:nth-child(2) { background-clip: padding-box; } div:nth-child(3) { background-clip: content-box; }
Console
expand_less
License
License
by DevDic
Close