কম্পিউটার

CSS এর সাথে একটি উপাদান কতটি কলাম জুড়ে থাকা উচিত তা সেট করুন


একটি উপাদান কত কলাম স্প্যান করা উচিত তা সেট করতে, কলাম-স্প্যান বৈশিষ্ট্য ব্যবহার করুন। আপনি কলাম-স্প্যান বৈশিষ্ট্য বাস্তবায়ন করতে নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন:

উদাহরণ

<!DOCTYPE html>
<html>
   <head>
      <style>
         .demo {
            column-count: 4;
            column-rule-color: maroon;
            column-rule-style: dashed;
         }
         h1 {
            column-span: all;
         }
      </style>
   </head>
   <body>
      <div class = "demo">
         <h1>This is our heading.</h1>
         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>
   </body>
</html>

  1. CSS ব্যবহার করে একটি উপাদানের সর্বনিম্ন-প্রস্থ এবং সর্বোচ্চ-প্রস্থ সেট করুন

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

  3. অ্যানিমেশন দিয়ে CSS কলামের বৈশিষ্ট্য পরিবর্তন করুন

  4. কিভাবে CSS দিয়ে একটি hr উপাদান স্টাইল করবেন?