CSS 2 - Font-weight

 

[ A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ H ]  [ L ]  [ M ]  [ O ]  [ P ]  [ Q ]  [ R ]  [ S ]  [ T ]  [ V ]  [ W ]  [ Z ]

font-weight

    

Wartości:

  • normal (wartość domyślna) - standardowa grubość znaków;
  • bold - gruba czcionka;
  • bolder - grubsza czcionka;
  • lighter - cieńsza czcionka;
  • 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 - grubość czcionki podana numerycznie;
  • inherit - przejęcie wartości "rodzica".

 

Zastosowanie.

Przykład:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
   <meta http-equiv="content-type"   content="text/html; charset=iso-8859-2">
   <title>Pierwszy dokument</title>
   <style type="text/css">
      P {font-weight:900;}
   </style>
</head>
<body>
   <P>Przykładowy akapit</P>
</body>
</html>

Efekt:

[testuj]

 

[ A ]  [ B ]  [ C ]  [ D ]  [ E ]  [ F ]  [ H ]  [ L ]  [ M ]  [ O ]  [ P ]  [ Q ]  [ R ]  [ S ]  [ T ]  [ V ]  [ W ]  [ Z ]