mozilla
Os seus resultados da pesquisa

    font-weight

    Resumo

    The font-weight property specifies the weight or boldness of the font.

    • Valor inicial: normal
    • Aplica-se a: todos os elementos
    • Herdado: sim
    • Mídia: Visual
    • Valor computado: Um dos valores numéricos (100, etc.), ou um dos valores numéricos mais um dos valores relativos (mais realçado ou menos realçado)

    Sintaxe

    font-weight: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit

    Valores

    normal 
    Normal font weight. Same as 400.
    bold 
    Bold font weight. Same as 700.
    lighter 
    One font weight lighter than the parent element (among the available weights of the font).
    bolder 
    One font weight darker than the parent element (among the available weights of the font).
    100, 200, 300, 400, 500, 600, 700, 800, 900 
    Numeric font weights for fonts that provide more than just normal and bold. If the exact weight given is unavailable, then 600-900 use the closest available darker weight (or, if there is none, the closest available lighter weight), and 100-500 use the closest available lighter weight (or, if there is none, the closest available darker weight). This means that for fonts that provide only normal and bold, 100-500 are normal and 600-900 are bold.

    Exemplos

    View the live example

    /* Set paragraph text to be bold. */
    p {font-weight: bold}
    
    /* Set h1 (level 1 heading) text to one step darker than
       normal but less than a standard bold. */
    h1 {font-weight: 500}
    
    /* Sets text enclosed within span tag to be one step lighter
       than the parent. */
    span {font-weight: lighter}
    

    == Notas ==

    Especificações

    Compatibilidade com navegadores

    Navegador Versão mais antiga
    Internet Explorer 3
    Netscape 4
    Opera 3.5

    Veja também

    Categorias

    Interwiki Language Links

    Etiquetas do documento e colaboradores

    Etiquetas: 
    Contributors to this page: Verruckt, teoli
    Última atualização por: teoli,