কম্পিউটার

CSS3 ব্যবহার করে কলাম কাউন্ট বা প্রস্থ নির্ধারণ করা


কলাম গণনা এবং প্রস্থ সেট করতে CSS3 এ কলাম বৈশিষ্ট্য ব্যবহার করুন। এটি কলাম-প্রস্থ এবং কলাম-গণনা বৈশিষ্ট্যগুলির জন্য একটি শর্টহ্যান্ড সম্পত্তি। এটি −

হিসাবে সেট করা হয়েছে৷
columns: auto|column-width column-count|initial|inherit;

উদাহরণ

কলাম গণনা −

সেট করার জন্য একটি উদাহরণ দেখা যাক
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
   -webkit-columns: auto auto; /* Chrome, Safari, Opera */
   -moz-columns: auto auto; /* Firefox */
   columns: auto auto;
}
</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. This is due to the fact that huge computing resources are easily available to the common man. The developers now take advantage of this in creating new Machine Learning models and to re-train the existing models for better performance and results. The easy availability of High Performance Computing (HPC) has resulted in a sudden increased demand for IT professionals having Machine Learning skills.
</div>
</body>
</html>

আউটপুট

CSS3 ব্যবহার করে কলাম কাউন্ট বা প্রস্থ নির্ধারণ করা

উদাহরণ

আসুন এখন আরেকটি উদাহরণ দেখি -

<!DOCTYPE html>
<html>
<head>
<style>
.demo {
   -webkit-columns: 40px 3; /* Chrome, Safari, Opera */
   -moz-columns: 40px 3; /* Firefox */
   columns: 40px 3;
}
</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. This is due to the fact that huge computing resources are easily available to the common man. The developers now take advantage of this in creating new Machine Learning models and to re-train the existing models for better performance and results. The easy availability of High Performance Computing (HPC) has resulted in a sudden increased demand for IT professionals having Machine Learning skills.
</div>

</body>
</html>

আউটপুট

CSS3 ব্যবহার করে কলাম কাউন্ট বা প্রস্থ নির্ধারণ করা


  1. CSS3 ব্যবহার করে একাধিক ট্রানজিশন সম্পাদন করা

  2. CSS ব্যবহার করে স্ক্রীন সাইজের উপর ভিত্তি করে কলামের প্রস্থ পরিবর্তন করা

  3. CSS3 ব্যবহার করে উপাদানের 2D রূপান্তর

  4. CSS3 ব্যবহার করে ওয়ার্ড ব্রেকিং নিয়ম উল্লেখ করুন