Outline that's inside an element

by eduan

HTML

<body>

<p><b>Note:</b> IE does not support outline-offset property.</p>

<div></div>

</body>

CSS

div {
    background: #808080;
    margin: 20px;
    width: 200px;
    padding: 20px;
    height: 200px;
    outline: 2px solid black;
    outline-offset: -16px;
}