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

CSS-এ ফন্ট ওয়েট (font weight) সেট করা

font-weight property ব্যবহার করে ফন্ট কতটো বোল্ড বা হালকা হবে তা নির্ধারণ করা যায়। সম্ভাব্য মান: normal, bold, bolder, lighter, 100 থেকে 900 পর্যন্ত (১০০-এর গুনিতক)।

<html>
  <head>
  </head>
  <body>
    <p style="font-weight:bold;">This font is bold.</p>
    <p style="font-weight:bolder;">This font is bolder.</p>
    <p style="font-weight:500;">This font is 500 weight.</p>
  </body>
</html>

নোট: সংখ্যাগত মান (১০০-৯০০) ব্যবহার করার জন্য ফন্টটি সে ওয়েট সমর্থন করতে হবে। 400 = normal, 700 = bold।

  1. CSS দিয়ে একটি বক্সের হাইট সেট করা

  2. CSS দিয়ে লিংকের রঙ সেট করুন

  3. CSS দিয়ে em ইউনিটে ফন্ট সাইজ সেট করুন

  4. CSS এ ফন্ট ওয়েট (Font Weight)