কম্পিউটার টিউটোরিয়াল

HTML DOM Style columnGap প্রপার্টি


HTML DOM Style columnGap প্রপার্টি একটি এলিমেন্টের কলামগুলোর মধ্যবর্তী স্পেস নির্দিষ্ট করতে ব্যবহৃত হয়।

সিনট্যাক্স

columnGap প্রপার্টি সেট করার সিনট্যাক্স:

object.style.columnGap = "length|normal|initial|inherit"

প্রপার্টি মানগুলো নিচে ব্যাখ্যা করা হলো:

মানবিবরণ
lengthকলামের মধ্যবর্তী গ্যাপ সেট করার জন্য দৈর্ঘ্য নির্দিষ্ট করতে ব্যবহৃত হয়।
normalএটি ডিফল্ট মান যা কলামের মধ্যবর্তী 1em গ্যাপ নির্দেশ করে।
initialপ্রপার্টিকে ডিফল্ট মানে সেট করার জন্য।
inheritপিতামাতা এলিমেন্ট থেকে মান উত্তরাধিকার সূত্রে পাওয়ার জন্য।

উদাহরণ

<!DOCTYPE html> <html> <head> <style>    div {       column-count: 4;       column-gap: 50px;       font-size: 1.2rem;    } </style> <script>    function changeColumnGap(){       document.getElementsByTagName("div")[0].style.columnGap="10px";       document.getElementById("Sample").innerHTML="কলাম গ্যাপ এখন কমে গেছে";    } </script> </head> <body>    <div>       This is some sample text inside div. This is the second div line.This is the third div       line.This is the fourth div line. This is the fifth div line.This is the sixth div line.       This is the seventh div line. This is the eigtth div line.This is the ninth div line. This is       the tenth div line.This is the eleventh div line. This is the twelth div line.This is the  thirteenth div     line.This is the fourteen line. This is the fifteen div line.This is the sixteen div line. This is the seventeen div line. This is the eighteen div line.    </div>    <p>নিচের বাটনে ক্লিক করলে উপরের div-এর কলাম গ্যাপ পরিবর্তন হবে</p>    <button onclick="changeColumnGap()">কলাম গ্যাপ পরিবর্তন করুন</button>    <p id="Sample"></p> </body> </html>

আউটপুট

HTML DOM Style columnGap প্রপার্টি

কলাম গ্যাপ পরিবর্তন করুন বাটনে ক্লিক করলে:

HTML DOM Style columnGap প্রপার্টি


  1. HTML DOM Style flexFlow প্রপার্টি

  2. HTML DOM Style flexDirection প্রপার্টি

  3. HTML DOM Style flex প্রপার্টি

  4. HTML DOM Style justifyContent প্রপার্টি