কম্পিউটার

কিভাবে জাভাস্ক্রিপ্ট দিয়ে কলাম নিয়ম বৈশিষ্ট্য সেট করবেন?


কলাম নিয়ম৷ কলাম নিয়ম সেট করতে জাভাস্ক্রিপ্টে সম্পত্তি ব্যবহার করা হয়। এটি আপনাকে কলামের নিয়মের মধ্যে শৈলী, রঙ এবং প্রস্থ সেট করতে দেয়।

উদাহরণ

আপনি জাভাস্ক্রিপ্ট -

এর সাথে কলাম নিয়ম বৈশিষ্ট্য সেট করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন

<!DOCTYPE html>
<html>
   <body>
      <p>Click below to create 4 columns</p>
      <button onclick="display()">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.columnCount = "4";
            document.getElementById("myID").style.columnRule = "2px outset red";
         }
      </script>
   </body>
</html>

  1. জাভাস্ক্রিপ্টের সাথে একটি উপাদানের অনুভূমিক প্রান্তিককরণ কিভাবে সেট করবেন?

  2. জাভাস্ক্রিপ্টের সাথে ছোট বড় অক্ষরে প্রদর্শিত ফন্টটি কীভাবে সেট করবেন?

  3. জাভাস্ক্রিপ্টের সাথে একটি পাঠ্যের লাইনের মধ্যে দূরত্ব কীভাবে সেট করবেন?

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