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

CSS-এ টেক্সট ডেকোরেশনের স্টাইল সেট করুন


টেক্সট ডেকোরেশনের স্টাইল সেট করতে text-decoration-style প্রপার্টি ব্যবহার করুন। নিচের মানগুলো ব্যবহার করা যায়:

text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;

উদাহরণ

<!DOCTYPE html>
<html>
<head>
<style>
span {
  text-decoration: line-through;
  text-decoration-color: blue;
}
.demo2 {
  text-decoration: underline;
  text-decoration-style: double;
  text-decoration-color: red;
}
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near <span>XYZ College</span> ABC College.</p>
<p class="demo2">Exam begins at 11AM.</p>
</body>
</html>

আউটপুট

CSS-এ টেক্সট ডেকোরেশনের স্টাইল সেট করুন

উদাহরণ

আরেকটি উদাহরণ:

<!DOCTYPE html>
<html>
<head>
<style>
.demo {
  text-decoration: overline;
  text-decoration-color: blue;
  text-decoration-style: wavy;
}
.demo2 {
  text-decoration: overline;
  text-decoration-style: dashed;
  text-decoration-color: red;
}
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 11AM.</p>
</body>
</html>

আউটপুট

CSS-এ টেক্সট ডেকোরেশনের স্টাইল সেট করুন


  1. CSS3 scale() ফাংশন

  2. CSS text-decoration প্রোপার্টি দিয়ে টেক্সট সজ্জা (আন্ডারলাইন, ওভারলাইন, স্ট্রাইকথ্রু)

  3. HTML-এ CSS direction প্রোপার্টি ব্যবহার করে টেক্সট ডিরেকশন সেট করা

  4. HTML DOM Style lineHeight Property