background preloader

HTML5 & CSS3

Facebook Twitter

Font-size - CSS. Résumé La propriété CSS font-size spécifie la taille de police. Celle-ci peut aussi changer la taille de police d'autres éléments, car elle est utilisée pour calculer la valeur des unités de longueur em et ex. Valeur initiale medium S'applique à tous les éléments Héritée oui Pourcentages relatifs à la taille de police de l'élément parent Média visuel Valeur calculée longueur absolue Syntaxe font-size: xx-small | x-small | small | medium | large | x-large | xx-large font-size: smaller | larger font-size: <length> | <percentage> | inherit Valeurs xx-small, x-small, small, medium, large, x-large, xx-large Un ensemble de mots clefs, de taille absolue, définit par rapport à la taille de police par défaut de l'utilisateur (qui est medium).

Larger, smaller Plus grande ou plus petite que la taille de police de l'élément parent, approximativement le ratio utilisé pour séparer les mots clefs de tailles absolues ci-dessus. Une longueur positive. Approches possibles Mots-clés Pixels L'unité em Exemples Notes. CSS Fonts Module Level 3. Abstract This CSS3 module describes how font properties are specified and how font resources are loaded dynamically.

The contents of this specification are a consolidation of content previously divided into CSS3 Fonts and CSS3 Web Fonts modules. The description of font load events was moved into the CSS3 Font Load Events module. Status of this document This is a public copy of the editors' draft. It is provided for discussion only and may change at any moment. Its publication here does not imply endorsement of its contents by W3C. The (archived) public mailing list www-style@w3.org (see instructions) is preferred for discussion of this specification.

This document was produced by the CSS Working Group (part of the Style Activity). This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. See the section CR Exit Criteria for details on advancing this specification to W3C Recommendation. Features at risk Table of contents 1 Introduction Ligature example weight. Html5. CSS Font. HTML Links. MOOC HTML5 / CSS3.