HTML DOM columnRuleColor প্রপার্টিটি কলামের মধ্যে নিয়মের রঙ সেট বা ফেরানোর জন্য ব্যবহৃত হয়।
−
-এর সিনট্যাক্স নিচে দেওয়া হলcolumnRuleColor বৈশিষ্ট্য −
সেট করা হচ্ছেobject.style.columnRuleColor = "color|initial|inherit"
এখানে, রঙ নিয়মের রঙ নির্দিষ্ট করে। ইনিশিয়াল মানটিকে ডিফল্ট মানতে সেট করে এবং ইনহেরিট এটিকে প্যারেন্ট প্রপার্টি ভ্যালুতে সেট করে।
আসুন columnRuleColor প্রপার্টি −
এর একটি উদাহরণ দেখিউদাহরণ
<!DOCTYPE html>
<html>
<head>
<style>
#DIV1{
padding: 5px;
column-count: 5;
column-rule-width: 9px;
column-rule-style: solid;
column-rule-color: lightcoral;
}
</style>
<script>
function changeColumnRuleColor(){
document.getElementById("DIV1").style.columnRuleColor="blue";
document.getElementById("Sample").innerHTML="The column rule color is now changed";
}
</script>
</head>
<body>
<div id="DIV1">
<img src="https://www.tutorialspoint.com/images/Swift.png"><br/>
<img src="https://www.tutorialspoint.com/images/xamarian.png"><br/>
<img src="https://www.tutorialspoint.com/images/pl-sql.png"><br/>
<img src="https://www.tutorialspoint.com/images/asp-net.png"><br/>
<img src="https://www.tutorialspoint.com/images/powerbi.png"><br/>
<img src="https://www.tutorialspoint.com/images/Tableau.png"><br/>
<img src="https://www.tutorialspoint.com/images/Big-Data-Analytics.png"><br/>
<img src="https://www.tutorialspoint.com/images/microsoftproject.png">
<img src="https://www.tutorialspoint.com/images/QlikView.png"><br/>
<img src="https://www.tutorialspoint.com/images/hadoop.png">
</div>
<p>Change the above div column rule color by clicking the below button</p>
<button onclick="changeColumnRuleColor()">Change Column Rule Color</button>
<p id="Sample"></p>
</body>
</html> আউটপুট

"কলামের নিয়মের রঙ পরিবর্তন করুন" ক্লিক করলে৷ বোতাম -
