[CSS] [proprietà] font-weight

font-weight (proprietà CSS) imposta il peso ovvero lo spessore del carattere del testo (ad es., grassetto) dell’elemento HTML.

Sintassi

[selettore] {
  font-weight: 100 | 200 | 300 | 400 |
               500 | 600 | 700 | 800 |
               900 | lighter  | normal
               bold | bolder
}
valore descrizione
XXX XXX

Esempi

<style>
.fontweight_1 {
    font-weight: 500;
}
.fontweight_2 {
    font-weight: bold;
}
</style>
<p class="fontweight_1">Test1</p>
<p class="fontweight_2">Test2</p>

Test1

Test2

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

css, proprietà css

Related Articles

0 Comment

Rispondi