664179 vues

CSS

Sébastien Merour
publié le 13/06/2020 à 16h15 | modifé le 13/06/2020 à 19h00
Catégorie : LangagesCommentaires (15523)
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.

15523 Commentaire(s)
  1. user
    1win_eqEr
    08/03/2026 à 14h51  commentaire modifé
    1вин как установить apk 1win82361.help

  2. user
    Caiu_spkr
    08/03/2026 à 14h15  commentaire modifé
    Nubank down [url=https://caiu.site/]Nubank down[/url] .

  3. user
    rufus download
    08/03/2026 à 13h38  commentaire modifé
    rufus Rufus remains a lightweight, no-cost, open-source utility built to create bootable USB drives. It is used to prepare a USB flash drive that can install an operating system, run diagnostic tools, or boot into a recovery environment. The program works without installation and can be opened immediately after downloading. The main function of Rufus is to create bootable USB media from ISO images with speed and stability. This allows users to install or run operating systems directly from a USB flash drive without the need for DVDs. The tool supports a wide range of operating systems and service utilities, which makes the program useful for both regular users and system administrators. Rufus works on computers with Microsoft Windows, starting from Windows 7. Both 32-bit and 64-bit versions are supported, and there is also a version available for ARM64 architecture. The software lets users create bootable USB drives from many different ISO images. It can be used to prepare a USB drive for installing Windows 11, Windows 10, Windows 8.1, or Windows 7, as well as various Linux distributions. Rufus also works with DOS systems and other recovery or maintenance tools commonly used for troubleshooting computers. One of the integrated features of Rufus is the ability to download official Windows ISO images directly from Microsoft servers. This allows users to obtain original installation images for Windows 8.1, Windows 10, and Windows 11 without searching for them on third-party websites. In addition to creating bootable drives, Rufus can format USB devices. It supports several file systems including FAT32, NTFS, exFAT, UDF, and ReFS. This flexibility allows the USB drive to be prepared for different use cases and compatibility requirements. Rufus supports both legacy BIOS systems and modern UEFI environments. Because of this, bootable drives created with Rufus can work on older computers as well as newer systems that use UEFI and Secure Boot. Another feature included in Rufus is Windows To Go support. This option allows users to run a full Windows environment directly from a USB drive. It can be useful for testing systems, performing maintenance, or working on multiple computers without installing Windows on the internal drive. Rufus also provides the option to bypass certain Windows 11 installation requirements. When creating an installation USB, the program can disable checks for TPM 2.0, Secure Boot, and minimum RAM requirements. This makes it possible to install Windows 11 on computers that would otherwise not meet the official hardware requirements. One of the reasons Rufus has become popular is its speed and simplicity. The program is extremely small, about 1.9 MB in size, and runs as a portable application without installation. It is distributed under the GPL v3 open-source license, supports more than 70 languages, and contains no advertisements, bundled software, or tracking components. Rufus works with a large number of ISO images. These include multiple versions of Windows, Windows Server editions, FreeDOS, and various system tools such as GParted, Hiren’s Boot CD, Parted Magic, and Clonezilla. Because of this wide compatibility, the program can be used not only for installing operating systems but also for disk management, data recovery, and system maintenance tasks. To use Rufus, a computer running Windows 7 or later and a USB flash drive are required. The program does not need to be installed. Users simply download the executable file, run it, select the ISO image they want to use, and create a bootable USB drive. Due to its simplicity, speed, and reliability, Rufus remains one of the most widely used tools for creating bootable USB drives.

  4. user
    SkycrownOnlinecasino_io5
    08/03/2026 à 13h14  commentaire modifé
    I was skeptical about skycrown 1 at first not gonna lie, but after trying it out I was genuinely suprised how well everything works, no sketchy stuff and payouts come through faster than expected

  5. user
    Rodneyduh
    08/03/2026 à 12h39  commentaire modifé
    ทดลองเล่นสล็อต pg TKBNEKO มอบมิติใหม่ของเกมออนไลน์ ฝาก-ถอนไว ด้วยระบบสแกน QR Code ในยุคดิจิทัลที่ โลกออนไลน์เติบโตต่อเนื่อง TKBNEKO พร้อมยกระดับการให้บริการ ด้วยระบบที่ ล้ำสมัย เสถียร และ โปร่งใส เพื่อให้ผู้เล่น อุ่นใจ ทุกครั้งที่ใช้งาน ระบบการเงินที่ใช้งานง่าย ฝากขั้นต่ำ: 1 บาท ถอนขั้นต่ำ: 1 บาท เวลาฝากเงิน: ใช้เวลาเพียง 3 วินาที ยอดถอน: ไม่มีลิมิต เติมเงินง่าย แค่สแกน สแกน QR Code ระบบจะ ประมวลผลอัตโนมัติ ขั้นต่ำ เริ่ม 100 บาท สูงสุด ไม่เกิน 500,000 บาทต่อครั้ง เกมยอดนิยม สล็อต: ลุ้นแจ็คพอต เกมสด: คาสิโนเรียลไทม์ กีฬา: แมตช์ทั่วโลก ยิงปลา: ลุ้นกำไรทันที โปรโมชั่นและสิทธิพิเศษ ติดตามหน้า โปรโมชั่น พร้อมระบบ VIP และโปรแกรม พันธมิตร ติดต่อเรา สอบถามข้อมูลได้ตลอด 24 ชั่วโมง ผ่านหน้า ศูนย์ช่วยเหลือ ทีมงาน ของเรา พร้อมดูแลตลอดเวลา https://medium.com/@ratypw/ทดลองเล่นสล็อต-pg-e598fa477f69

Ajoutez un commentaire :