documentation css display
Vous êtes ici: Les articles techniques » documentation » Cascading Style Sheets : L'ensemble des propriétés CSS » displayTable des matières
display
Version CSS : 2
- S’applique à : Tous les éléments.
- Valeur héritée : Non
- Valeur par défaut : inline
Compatibilité
| Navigateur | IE 6 | IE 7 | Firefox 1.5 | Firefox 2 | Opera 8.5 | Opera 9 | Konqueror 3.5 | Safari 2 |
|---|---|---|---|---|---|---|---|---|
| display | Partiel | Partiel | Oui | Oui | Oui | Oui | Oui | Non testé |
| inline | Oui | Oui | Oui | Oui | Oui | Oui | Oui | Non testé |
| block | Partiel | Partiel | Oui | Oui | Oui | Oui | Oui | Non testé |
| list-item | Oui | Oui | Partiel | Partiel | Oui | Oui | Oui | Non testé |
| run-in | Non | Non | Non | Non | Oui | Oui | Oui | Non testé |
| inline-block | Partiel | Partiel | Non | Non | Oui | Oui | Oui | Non testé |
| table | Non | Non | Oui | Oui | Oui | Oui | Oui | Non testé |
| inline-table | Non | Non | Non | Non | Oui | Oui | Oui | Non testé |
| table-row-group | Non | Non | Oui | Oui | Oui | Oui | Oui | Non testé |
| table-header-group | Partiel | Partiel | Oui | Oui | Oui | Oui | Oui | Non testé |
| table-footer-group | Partiel | Partiel | Oui | Oui | Oui | Oui | Oui | Non testé |
| table-row | Non | Non | Oui | Oui | Oui | Oui | Oui | Non testé |
| table-column-group | Non | Non | Partiel | Partiel | Partiel | Partiel | Oui | Non testé |
| table-column | Non | Non | Partiel | Partiel | Partiel | Partiel | Oui | Non testé |
| table-cell | Non | Non | Oui | Oui | Oui | Oui | Oui | Non testé |
| table-caption | Non | Non | Oui | Oui | Oui | Oui | Oui | Non testé |
| none | Oui | Oui | Oui | Oui | Oui | Oui | Oui | Non testé |
| inherit | Non | Non | Oui | Oui | Oui | Oui | Oui | Non testé |
Explications
Display permet de contrôler l’affichage des éléments dans la page.
Attention : Les navigateurs actuels supportent mal ou pas du tout certaines valeurs de cette propriété.
Exemple de script
.image1{ display: none; } .paragraphe3{ display: block; } .liste11{ display: list-item; }
veille



