उदाहरण
outlineOffset प्रॉपर्टी से आउटलाइन और बॉर्डर के बीच स्पेस बनाएं।
<!DOCTYPE html>
<html>
<head>
<style>
#box {
width: 450px;
background-color: orange;
border: 3px solid red;
margin-left: 20px;
}
</style>
</head>
<body>
<p>आउटलाइन ऑफसेट जोड़ने के लिए नीचे क्लिक करें।</p>
<div id="box">
<p>यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है।</p>
<p>यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है।</p>
<p>यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है। यह एक डिव है।</p>
</div>
<br>
<button type="button" onclick="display()">आउटलाइन ऑफसेट सेट करें</button>
<br>
<script>
function display() {
document.getElementById("box").style.outline = "thick solid";
document.getElementById("box").style.outlineColor = "#5F5F5F";
document.getElementById("box").style.outlineOffset = "7px";
}
</script>
</body>
</html>
मान: लंबाई (px, em)। ऋणात्मक मान आउटलाइन को बॉर्डर के अंदर खींचता है।