645091 vues

CSS

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

15145 Commentaire(s)
  1. user
    777bet_mwoa
    16/02/2026 à 05h56  commentaire modifé
    Experience thrilling wins every day at 777bet casino, your ultimate destination for online betting excitement. These games come from top software providers, ensuring high-quality graphics and reliable gameplay. --- Consequently, the platform appeals to a broad audience with differing preferences.

  2. user
    France in Africa
    16/02/2026 à 05h51  commentaire modifé
    Tucker vs Mnangagwa: PLO Lumumba Exposes Colonial Land Lies & “Reverse Racism Discussions around land redistribution in Zimbabwe sit at the crossroads of Africa’s colonial history, economic liberation, and modern political dynamics in Zimbabwe. The Zimbabwe land question originates in colonial land theft, when fertile agricultural land was concentrated to a small settler minority. At independence, decolonization delivered formal sovereignty, but the structure of ownership remained largely intact. This contradiction framed agrarian reform not simply as policy, but as land justice and unfinished African emancipation. Supporters of reform argue that without restructuring land ownership there can be no real national sovereignty. Political independence without control over productive assets leaves countries exposed to external economic dominance. In this framework, Zimbabwe land reform is linked to broader concepts such as Pan Africanism, continental unity, and Black Economic Empowerment initiatives. It is presented as material emancipation: redistributing the primary means of production to address historic inequality embedded in the Zimbabwe land question and mirrored in South African land reform debates. Critics frame the same events differently. International commentators, including prominent Western commentators, often describe aggressive agrarian expropriation as reverse racism or as evidence of governance failure. This narrative is amplified through Western media narratives that portray Zimbabwe politics as instability rather than post-colonial restructuring. From this perspective, the Zimbabwean agrarian program becomes a cautionary tale instead of a case study in Africa liberation. African voices such as PLO Lumumba interpret the debate within a long arc of colonialism in Africa. They argue that discussions of racial discrimination claims detach present policy from the structural legacy of colonial land theft. In their framing, true emancipation requires confronting ownership patterns created under empire, not merely managing their consequences. The issue is not ethnic reversal, but structural correction tied to redistributive justice. Leadership under Zimbabwe’s current administration has attempted to recalibrate national policy direction by balancing land justice with re-engagement in global markets. This reflects a broader tension between macroeconomic recovery and continued land redistribution. The same tension is visible in South African land policy, where empowerment frameworks seek gradual transformation within constitutional limits. Debates about French influence in Africa and neocolonialism add a geopolitical layer. Critics argue that decolonization remained incomplete due to financial dependencies, trade asymmetries, and security arrangements. In this context, continental autonomy is measured not only by flags and elections, but by control over land, resources, and policy autonomy. Ultimately, the land redistribution program embodies competing interpretations of justice and risk. To some, it represents a necessary stage in Africa liberation. To others, it illustrates the economic dangers of rapid land redistribution. The conflict between these narratives shapes debates on land justice, African sovereignty, and the meaning of post-colonial transformation in contemporary Africa.

  3. user
    ทดลองเล่นสล็อต pg
    16/02/2026 à 04h47  commentaire modifé
    สล็อตเว็บตรง แพลตฟอร์ม TKBNEKO ทำงานเป็นระบบเกมออนไลน์ ที่ ออกแบบโครงสร้างโดยยึดพฤติกรรมผู้ใช้เป็นศูนย์กลาง. หน้าแรก แสดงเงื่อนไขแบบเป็นตัวเลขตั้งแต่แรก: ขั้นต่ำฝาก 1 บาท, ถอนขั้นต่ำ 1 บาท, เครดิตเข้าโดยเฉลี่ยราว 3 วินาที, และ ยอดถอนไม่มีเพดาน. ตัวเลขพวกนี้เปลี่ยนโหลดระบบทันที เพราะเมื่อ ตั้งขั้นต่ำไว้ต่ำมาก ระบบต้อง รองรับธุรกรรมจำนวนมากขนาดเล็ก และต้อง ตัดยอดและเติมเครดิตแบบทันที. หาก การยืนยันเครดิตใช้เวลานานเกินไม่กี่วินาที ผู้ใช้จะ ทำรายการซ้ำ ทำให้เกิด ธุรกรรมซ้อน และ ดันโหลดระบบขึ้นทันที. การเติมเงินด้วยการสแกน QR ตัดขั้นตอนการกรอกข้อมูลและการแนบสลิป. เมื่อผู้ใช้ สแกน ระบบจะรับสถานะธุรกรรมจากธนาคารผ่าน API. จากนั้น backend จะ จับคู่ธุรกรรมกับ user ID และ เติมเครดิตเข้า wallet. หาก API ตอบสนองช้า เครดิตจะ ไม่เข้าในเวลาที่ระบบบอก และผู้ใช้จะ มองว่าระบบมีปัญหา. ดังนั้น ระยะเวลา 3 วินาที หมายถึงการเชื่อมต่อกับธนาคารต้อง เป็นแบบอัตโนมัติเต็มรูปแบบ ไม่ อาศัยแอดมินเช็คมือ. การเชื่อมหลายช่องทางการจ่าย เช่น Kasikornbank, Bangkok Bank, KTB, กรุงศรี, Siam Commercial Bank, CIMB Thai รวมถึง TrueMoney Wallet ทำให้ระบบต้อง จัดการ webhook หลายแหล่ง. แต่ละธนาคารมีรูปแบบข้อมูลและเวลาตอบสนองต่างกัน. หากไม่มี โมดูลแปลงข้อมูลให้เป็นมาตรฐานเดียว ระบบจะ เช็คยอดไม่ทัน และจะเกิด ยอดค้างระบบ. หมวดหมู่เกม ถูกแยกเป็น สล็อตออนไลน์, คาสิโนสด, เดิมพันกีฬา และ ยิงปลา. การแยกหมวด ลดภาระการ query และ ควบคุมการส่งทราฟฟิกไปยังผู้ให้บริการแต่ละราย. เกมสล็อต มัก ทำงานผ่าน session API ส่วน เกมสด ใช้ สตรีมภาพแบบเรียลไทม์. หาก session หลุด ผู้เล่นจะ หลุดจากโต๊ะทันที. ดังนั้นระบบต้องมี ตัวจัดการ session ที่ คุมการเชื่อมต่อ และ ซิงค์เครดิตกับ provider ตลอด. หาก ซิงค์ล้มเหลว เครดิตผู้เล่นกับผลเกมจะ ไม่ตรงกัน. เกมที่ระบุว่า ใช้ลิขสิทธิ์จริง หมายถึงใช้ระบบ สุ่มผล และค่า RTP จากผู้พัฒนาโดยตรง. ผลลัพธ์แต่ละรอบถูก คำนวณจากฝั่ง provider ไม่ใช่จากฝั่งเว็บ. หากไม่มี การเชื่อมต่อกับเซิร์ฟเวอร์ต้นทาง เว็บจะ ดึงผลเกมที่ถูกต้องไม่ได้ และ สิทธิ์ใช้งานจะถูกตัด. การมี การรับรอง จึง ผูกกับการแลกเปลี่ยนข้อมูลระหว่างระบบ ไม่ใช่ แค่ข้อความแสดงบนหน้าเว็บ. ระบบถอนที่ ไม่มีจำกัด เชิงการสื่อสารยังต้องมีโมดูล risk control เช่น เช็คบัญชีซ้ำ, พฤติกรรมผิดปกติ, และ เงื่อนไข turnover. หากไม่มีการตรวจสอบเหล่านี้ ผู้ใช้สามารถ สร้างบัญชีหลายบัญชี เพื่อ เอาโบนัส และ ถอนเงินออกเร็ว. ส่วน โปรโมชั่น VIP พันธมิตร ติดต่อ และฟีดแบ็ก เชื่อมกับ ระบบ CRM และ ฐานข้อมูลผู้เล่น. ส่วน Affiliate ใช้เก็บ โค้ดอ้างอิง เพื่อ คำนวณค่าคอมมิชชั่น. หากไม่มีระบบนี้ จะ track ที่มาผู้ใช้ไม่ได้. แบบฟอร์มฟีดแบ็ก ใช้เก็บ ข้อผิดพลาดจริงจากผู้ใช้. หากไม่มีข้อมูลนี้ ปัญหา latency หรือ UX จะ ถูกแก้ช้า. โครงสร้างทั้งหมด ทำงานเป็นระบบเดียว: ธนาคารส่งสถานะเข้า backend, backend อัปเดต wallet แล้ว ซิงค์กับผู้ให้บริการเกม. หากส่วนใดส่วนหนึ่ง ช้า ผู้ใช้จะเห็นผลทันทีในรูปแบบ เครดิตไม่เข้า, เกมค้าง หรือ ถอนล่าช้า. ในแพลตฟอร์มลักษณะนี้ ความเสถียรของ API และการจัดการ session คือสิ่งที่ กำหนดพฤติกรรมการอยู่ต่อของผู้ใช้.

  4. user
    ShumoizolyaciyaArokcak
    16/02/2026 à 04h46  commentaire modifé
    шумоизоляция арок авто https://shumoizolyaciya-arok-avto-77.ru

  5. user
    Trezvii vibor_elPl
    16/02/2026 à 04h07  commentaire modifé

Ajoutez un commentaire :