CSS3 Outline offset Property

Outline means to draw a line around the element at the outside of the border.


You can try to run the following code to implement the CSS3 outline-offset property −

Live Demo

         div {
            margin: 20px;
            padding: 10px;
            width: 300px;
            height: 100px;
            border: 5px solid pink;
            outline: 5px solid green;
            outline-offset: 15px;