उदाहरण
outlineWidth प्रॉपर्टी से आउटलाइन की मोटाई सेट करें।
<!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.outlineColor = "#5F5F5F";
document.getElementById("box").style.outlineStyle = "solid";
document.getElementById("box").style.outlineWidth = "7px";
}
</script>
</body>
</html>
मान: thin, medium (डिफ़ॉल्ट), thick, लंबाई (px, em)।