কম্পিউটার

জাভাস্ক্রিপ্ট দিয়ে কলামের মধ্যে নিয়মের রঙ কীভাবে সেট করবেন?


columnRuleColor ব্যবহার করুন৷ জাভাস্ক্রিপ্টে সম্পত্তি নিয়মের রঙ সেট করতে। জাভাস্ক্রিপ্ট -

সহ কলামগুলির মধ্যে নিয়মের রঙ সেট করতে আপনি নিম্নলিখিত কোডটি চালানোর চেষ্টা করতে পারেন

উদাহরণ

<!DOCTYPE html>
<html>
   <head>
      <style>
         #myID {
            column-count: 4;
            column-rule: 4px outset yellow;
         }
      </style>
   </head>
   <body>
      <p>Click below to change color</p>
      <button onclick="display()">Change Color between Columns</button>
      <div id="myID">
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
      </div>
      <script>
         function display() {
            document.getElementById("myID").style.columnRuleColor = "red";
         }
      </script>
   </body>
</html>

  1. জাভাস্ক্রিপ্টের সাথে একটি পাঠ্যের অক্ষরের মধ্যে স্থান কীভাবে সেট করবেন?

  2. CSS দিয়ে কলামের মধ্যে নিয়মের রঙ সেট করুন

  3. CSS দিয়ে কলামের মধ্যে নিয়মের প্রস্থ সেট করুন

  4. CSS দিয়ে কলামের মধ্যে নিয়মের স্টাইল সেট করুন