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

CSS3 দিয়ে কলাম গ্যাপ (Column Gap) সেট করা

CSS3-এ কলাম মাঝপথে গ্যাপ সেট করার জন্য column-gap প্রপার্টি ব্যবহার করুন।

column-gap: length | normal | initial | inherit;

উদাহরণ ১: ২৫পিক্স গ্যাপ

<!DOCTYPE html> <html> <head> <style> .demo {    column-count: 4;    -webkit-column-count: 4;    -moz-column-count: 4;    -webkit-column-gap: 25px;    -moz-column-gap: 25px;    column-gap: 25px; } </style> </head> <body> <h1>Machine Learning</h1> <div class="demo"> Today’s Artificial Intelligence (AI) has far surpassed the hype of blockchain and quantum computing... </div> </body> </html>

আউটপুট

CSS3 দিয়ে কলাম গ্যাপ (Column Gap) সেট করা

উদাহরণ ২: normal গ্যাপ (ব্রাউজার ডিফল্ট)

<!DOCTYPE html> <html> <head> <style> .demo {    column-count: 2;    -webkit-column-count: 2;    -moz-column-count: 2;    -webkit-column-gap: normal;    -moz-column-gap: normal;    column-gap: normal; } </style> </head> <body> <h1>Machine Learning</h1> <div class="demo"> Today’s Artificial Intelligence (AI) has far surpassed the hype of blockchain and quantum computing... </div> </body> </html>

আউটপুট

CSS3 দিয়ে কলাম গ্যাপ (Column Gap) সেট করা

মানগুলো

  • length: নির্দিষ্ট দূরত্ব (px, em, rem, cm ইত্যাদি)
  • normal: ব্রাউজার ডিফল্ট (সাধারণত ১em)
  • initial/inherit: স্ট্যান্ডার্ড CSS মান

শর্টহ্যান্ড: columns প্রপার্টিতে গ্যাপ অন্তর্ভুক্ত নয়। আলাদা column-gap ব্যবহার করুন।

  1. CSS দিয়ে লিংকের রঙ সেট করা

  2. CSS3 দিয়ে ট্রান্সপারেন্ট বক্সে টেক্সট তৈরি করার পদ্ধতি

  3. CSS3 ২D ট্রান্সফর্মেশন (2D Transformation) অফ এলিমেন্টস

  4. CSS3 Word Break (Word Breaking Rules) নির্দিষ্ট করা