কম্পিউটার

CSS অবস্থান:পরম;


অবস্থান:পরম; সম্পত্তি আপনাকে নিকটতম অবস্থানের পূর্বপুরুষের সাথে সম্পর্কিত উপাদানের অবস্থান করতে দেয়।

উদাহরণ

আপনি CSS অবস্থান বাস্তবায়নের জন্য নিম্নলিখিত কোড চালানোর চেষ্টা করতে পারেন:absolute;

<!DOCTYPE html>
<html>
   <head>
      <style>
         div.one {
            position: relative;
            width: 500px;
           height: 150px;
           border: 2px solid blue;
         }
         div.two {
            position: absolute;
            top: 70px;
            right: 0;
            width: 300px;
            height: 50px;
            border: 2px solid yellow;
         }
      </style>
   </head>
   <body>
      <h2>position: absolute;</h2>
      The position: absolute; property allows you to position element relative to the nearest positioned ancestor.
      <div class = "one">div has position: relative;
         <div class = "two">div has position: absolute;</div>
      </div>
   </body>
</html>

  1. CSS এ পরম অবস্থান

  2. সিএসএসে পটভূমির অবস্থান নির্ধারণ করা

  3. CSS ব্যবহার করে পরম পজিশনিং

  4. CSS পজিশনিং এলিমেন্ট