1984987 vues

CSS

Sébastien Merour
publié le 13/06/2020 à 16h15 | modifé le 13/06/2020 à 19h00
Catégorie : Langages | Commentaires (48786)
CSS
Description

Le CSS (Cascading Styles Sheets) est un langage informatique permettant de décrire le style, la présentation d'un document HTML. Là où le HTML va se contenter de structurer un document, le CSS va prendre en charge le style, la mise en page d'une page web.

En réalité, le HTML n'a jamais eu besoin du langage CSS pour être exécuté sur un navigateur web. Cependant, le CSS est devenu rapidement une nécessité afin de séparer ce qui relève purement et simplement de la structure d'une page web (c'est le rôle du HTML), de ce qui relève de la mie en page (formes, couleurs, polices de caractères....).

Le style d'une page web peut être défini de 3 façons :

-soit directement dans la page HTML (avec par exemple la balise style, située dans la partie HEAD de la page)

-soit en mode inline (exemple : utilisation de la balise strong pour mettre en gras un texte)

-soit grâce à un fichier CSS, référencé dans la section HEAD de la page.

Il est évident qu'il est préférable d'utiliser la 3ème méthode. En effet : imaginons qu'un développeur souhaite modifier complètement le design d'un site web, sans pour autant modifier la structure des pages web. C'est là que le fichier CSS a son intérêt : le développeur pourra modifier le style du site en ne modifiant que le fichier CSS du site. Ce sera d'autant plus utile si le site web contient de très nombreuses pages.

Il est possible également qu'une page web ou qu'un site fasse appel à plusieurs fichiers CSS. Par exemple, il est fréquent de voir un fichier CSS différent pour chaque taille d'écran, afin de rendre un site 100% responsive.

Par ailleurs, le CSS est devenu de plus en plus puissant au fil des années. Désormais, le CSS permet d'afficher par exemple des animations, ou des graphiques particulièrement complexes.

Les sélecteurs

Le principe du CSS repose sur la sélection : on sélecte un élément (par exemple un type de balise, ou bien une balise possédant un identifiant) pour lui appliquer un style. On pourra par exemple appliquer une couleur rouge pour tous les titres de type H3.

Box Model

Tous les élements HTML (une image, un paragraphe, un formulaire...) peut être considéré comme une boîte. Pour définir cette boîte, on utilise 4 élements :

- Margin (Marge - l'espace qui est en dehors de la bordure)

- Border (Bordure - la bordure qui est autour du padding)

- Padding (Ecart - l'écart entre le contenu et la bordure)

- Content (Contenu - par exemple le texte et les images)

Grid

Grid est un principe CSS permettant d'afficher un Layout en mode "grille". Le développeur peut utiliser ce principe pour positionner des éléments dans une grille, en faisant varier par exemple la taille de chaque case, ou l'orientation de chaque rangée, etc...

Pour afficher un layout en mode Grid, il est nécessaire d'insérer l'instruction display: grid

Flexbox

Auparavant, nous avions 4 formats de Layouts possibles :

- Block, pour les sections d'une page

- Inline, pour le texte

- Table, pour afficher un tableau

- Positioned, pour positionner explicitement un élément.

L'arrivée du concept du Flexbox facilite la création de layout, sans avoir à utiliser les notions de float ou de position.

Pour activer la notion de flexbox sur un élément, il est nécessaire d'appliquer un affichage flex avec l'instruction display: flex

Les proprités d'un conteneur Flex sont les suivantes :

flex-direction

flex-wrap

flex-flow

justify-content

align-items

align-content

Fonctionnalités
Style / Mise en page
Date de création
17/12/1996
Créateur
W3C
Dernière version
3
Langage
CSS
Liens
Aux dernières nouvelles
Depuis 2010, CSS est censé évoluer vers sa version 4. Mais suite au succès de HTML 5 couplé avec CSS 3, il est possible que CSS 4 ne voit jamais le jour, où bien que la notion de version (5 pour HTML et 3 pour CSS) disparaisse, pour devenir des langages en constante évolution.

48786 Commentaire(s)
  1. user
    clothing PLM software
    07/10/2026 à 07h07  commentaire modifé
    product data management fashion software] WavePLM is a modern PLM software that helps fashion and apparel brands manage product development from concept to production, reducing time-to-market and minimising errors across teams and suppliers. lifecycle management software] WavePLM delivers end-to-end product lifecycle management software for apparel brands, covering tech packs, BOM, samples, and supplier collaboration in one unified platform. PLM] Teams using WavePLM as their fashion PLM report faster collection launches and fewer costly mistakes, thanks to centralised data and real-time collaboration between design, sourcing, and production. PLM system] An apparel PLM system like WavePLM replaces scattered spreadsheets and email chains with structured workflows, giving every stakeholder a single source of truth for product data. for fashion brands] WavePLM is built as a PLM for fashion brands of all sizes — from emerging labels to global retailers — offering flexible modules that adapt to your development process. lifecycle management for apparel] Implementing product lifecycle management for apparel with WavePLM helps brands cut development cycles, control costs, and maintain quality across multiple seasons and collections. PLM software] WavePLM clothing PLM software streamlines the entire product journey: from initial sketch and material selection through sampling, costing, and final production handoff. product development software] As fashion product development software, WavePLM connects designers, buyers, and suppliers on one platform, ensuring everyone works from the same approved data at every stage. system for manufacturers] WavePLM operates as a PLM system for manufacturers and brands alike, providing structured data exchange and collaborative tools that bridge the gap between design intent and factory output. PLM software] Garment PLM software from WavePLM covers the full development lifecycle — colorways, grading, BOM, costing, and calendar management — in one integrated environment. pack software] WavePLM tech pack software allows designers to build accurate, detailed tech packs that are instantly accessible to suppliers, reducing back-and-forth and speeding up sample approval. management software] With WavePLM BOM management software, teams maintain live, version-controlled bills of materials linked directly to styles, colours, and seasons — eliminating duplicate data entry. management software] WavePLM sample management software tracks every sample request, revision, and approval stage, giving merchandisers full visibility into where each style stands in the development process. collaboration PLM] WavePLM supplier collaboration PLM gives vendors secure access to specs, comments, and approvals — reducing email volume and accelerating the feedback loop between brands and factories. management software] WavePLM collection management software helps brands plan and execute seasonal assortments with clarity, linking every style to calendar milestones, budgets, and responsible owners. cloud software] WavePLM cloud PLM software means your team can access product data, update specs, and approve samples from anywhere — no on-premise servers required, with enterprise-grade security. management PLM] WavePLM material management PLM lets sourcing teams build a central library of fabrics, trims, and components that designers can search, reuse, and assign directly to new styles. industry software] WavePLM is purpose-built fashion industry software, not a generic tool adapted for apparel — every module reflects the real workflows of design, merchandising, sourcing, and production teams. data management fashion] Centralised product data management for fashion with WavePLM eliminates version conflicts and keeps specifications, images, and approvals linked to the correct style throughout development.

  2. user
    otvetstvennoe hranenie 845
    07/10/2026 à 07h07  commentaire modifé
    Передайте на хранение удобное склады ответственного хранения грузов без аренды собственного склада. Передача товара на склад дает возможность рациональнее управлять товарными запасами. В специально оборудованных помещениях хранят коммерческие грузы. В зависимости от условий могут выполняться упаковка. Для дистрибьютора это удобный способ организовать логистику.

  3. user
    otvetstvennoe hranenie 271
    07/10/2026 à 07h07  commentaire modifé
    Передайте на хранение профессиональное ответственное хранение груза москва с учетом характеристик продукции. Подобная услуга помогает организовать хранение партий разного объема. В складском комплексе принимают коммерческие грузы. В зависимости от условий доступны упаковка. Для интернет-магазина подобное решение помогает упростить работу с запасами.

  4. user
    otvetstvennoe hranenie 613
    07/10/2026 à 07h05  commentaire modifé
    Передайте на хранение удобное складские услуги при необходимости временного размещения товара. Передача товара на склад помогает сократить нагрузку на складскую инфраструктуру. На логистической площадке хранят коммерческие грузы. По запросу доступны маркировка продукции. Для дистрибьютора это удобный способ упростить работу с запасами.

  5. user
    dakimakura 147
    07/10/2026 à 07h05  commentaire modifé
    Пора персональную подушки дакимакура аниме для уютной комнаты. Присматривайте интересные варианты. В каталоге доступны разные тематики. Подбирая модель учитывайте размер. В качестве подарка подойдет оригинальную подушку.

Ajoutez un commentaire :