CSS-এ টেক্সট ফরম্যাট করতে টেক্সট রং, টেক্সট ডেকোরেশন, লাইন হাইট, টেক্সট ডিরেকশন, টেক্সট আপসারন ইত্যাদি পরিবর্তন করতে পারেন।
কয়েকটি উদাহরণ দেখি:
টেক্সট আপসারন
CSS-এ টেক্সট আপসারন সেট করতে text-align প্রপার্টি ব্যবহার করুন। সম্ভাব্য মানগুলো:
text-align: left|right|center|justify|initial|inherit;
উদাহরণ
টেক্সট আপসারন সেট করার উদাহরণ:
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
-webkit-columns: auto auto; /* Chrome, Safari, Opera */
-moz-columns: auto auto; /* Firefox */
columns: auto auto;
text-align: justify;
}
</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>
আউটপুট

লাইন হাইট
লাইন হাইট সেট করতে line-height প্রপার্টি ব্যবহার করুন। প্রপার্টি মানগুলো:
line-height: normal|number|length|initial|inherit;
উদাহরণ
<!DOCTYPE html>
<html>
<head>
<style>
div { line-height: 1.9; }
</style>
</head>
<body>
<h1>Demo Heading</h1>
<div>
<p>This is demo text.<br> This is another demo text. </p>
</div>
</body>
</html>
আউটপুট

টেক্সট ডেকোরেশন
CSS-এ টেক্সট ডেকোরেশনের জন্য text-decoration প্রপার্টি শর্টহ্যান্ড হিসেবে নিচের প্রপার্টিগুলোর জন্য ব্যবহৃত হয়:
text-decoration-line text-decoration-color text-decoration-style
উদাহরণ
CSS-এ টেক্সট ডেকোরেশন উদাহরণ:
<!DOCTYPE html>
<html>
<head>
<style>
.demo { text-decoration: overline underline; }
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 9AM.</p>
</body>
</html>
আউটপুট
