1281771 vues

CSS

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

5182 Commentaire(s)
  1. user
    888starz_dpel
    23/07/2026 à 11h25  commentaire modifé
    Кручу барабаны на 888starz не так давно, так что расскажу как оно по факту. Зашёл через рекламу в телеге, думал очередная помойка, но остался. Сама регистрация быстрая, без нервов — почту и телефон и всё, доки потом уже при выводе. Минималка смешной, начинал с пары долларов, чтобы проверить. Насчёт слотов тут глаза разбегаются — где-то за пару тысяч автоматов. Студии нормальные, не левые: Pragmatic Play, NetEnt, Play'n GO, а также Yggdrasil и Betsoft. Чаще всего гоняю Gates of Olympus да Sweet Bonanza, вечерами заглядываю в Book of Dead. Отдельно отмечу лайв-казино от Evolution — реальные крупье, шоу типа Crazy Time весело, хотя на дистанции чаще сливаешь. Насчёт приветственного всё стандартно, но щедро: дают бонус на первый деп вдобавок фриспины. Условия отыгрыша честно говоря не подарок, поэтому не ведитесь слепо — сам пролетел с этим по глупости. Кстати свежие условия и рабочие бонусы проще всего посмотреть через 888. перед регой, инфа не протухшая. Ещё встречается и без депозита что-то, но это ловите по акциям. По кэшауту для меня главное, и тут порядок. Методов навалом: Visa, Mastercard, Skrill и Neteller, ну и USDT. Через биток прилетает почти сразу, карты дольше. На днях выводил — всё чётко. Минус — при крупной сумме тянут с проверкой, терпимо. С телефона отдельная тема: своё приложение, на айфон ставится чуть муторнее. Достать легко с офсайта, веб-версия без лагов. Саппорт на связи быстро, по-русски без ботов-тупиков. По документам есть кюрасаовская лицензия — не оффшор без бумаг. Короче играю дальше, 888starz свою нишу занял, но звёзд с неба не хватает.

  2. user
    888starz_ykpi
    23/07/2026 à 11h25  commentaire modifé
    Зависаю на 888starz не так давно, поэтому накидаю своими впечатлениями. Зашёл случайно, думал очередная помойка, но остался. Сама регистрация быстрая, без нервов — почту и телефон и всё, доки потом уже при выводе. Минималка небольшой, начинал с мелочи, чтобы проверить. По играм тут глаза разбегаются — по ощущениям тысячи слотов тайтлов. Софт нормальные, не левые: Pragmatic Play, NetEnt, Play'n GO, ещё Yggdrasil и Betsoft. Залипаю на Gates of Olympus и Sweet Bonanza, под настроение захожу в Book of Dead. Плюсом идёт живой раздел от Evolution — живые ведущие, шоу типа Crazy Time затягивает, хотя честно чаще сливаешь. По бонусам адекватно: накидывают бонус на первый деп и ещё фриспины. Отыгрыш правда не подарок, поэтому не ведитесь слепо — я по первости не вкурил и подарок сгорел. Если интересно свежие условия и рабочие бонусы лучше посмотреть на 8stars перед регой, инфа не протухшая. Периодически встречается и без депозита что-то, но не всегда. Вывод денег что решает, и тут претензий нет. Способов куча: Visa, Mastercard, кошельки, плюс USDT. Криптой быстрее всего, на карту бывает до пары часов. На днях заказал — всё чётко. Что бесит — иногда просят допверификацию, но это у всех так. Мобилка радует: можно скачать 888starz на телефон, на айфон ставится без танцев с бубном. Установить реально прямо с сайта, веб-версия без лагов. Техподдержка в чате быстро, по-русски отвечают живые люди. Лицензия легально по Curacao — не оффшор без бумаг. В общем играю дальше, 888starz один из рабочих вариантов, хотя мелкие косяки есть везде.

  3. user
    true_tgmn
    23/07/2026 à 11h11  commentaire modifé
    Been a member at true fortune casino for a while now, and tbh it's grown on me. Playing from the UK so the first thing I checked was payments and licensing, and it's all been smooth enough. Game-wise there's honestly massive, something like 1,500-odd slots and table games if not more. Loads from the big names — Pragmatic Play, NetEnt, NetEnt, Betsoft and Big Time Gaming represented. I mostly spin Gates of Olympus, and a bit of Book of Dead when I'm bored, though finding a specific slot takes a minute. If you're into live stuff, Evolution handle the live dealers — proper croupiers, roulette and blackjack and Crazy Time and the other game shows which I get sucked into more than I should. The welcome side of things, what you get starting out was pretty generous — a deposit match plus a chunk of free spins. Make sure you read the wagering first, it's the standard 35x sort of range which is standard-ish but adds up. They run no-deposit chips now and then, so you can see what's live at truefortune rather than taking the first thing you see. You can start with a tenner, think it was a tenner, so you're not risking much to try it out. Cashouts are honestly the real test. I've used Visa and Skrill, there's also Neteller, crypto, the usual e-wallets. Skrill withdrawals cleared in about 48 hours, but card ones dragged a bit. One gripe — the KYC docs bounced once which was faffy. Runs fine on mobile — no app needed, plays smooth on the phone. The support team were okay when I pinged them, though the first reply was a canned response. Licensing checks out, which is the main thing for me. Not perfect, but for a casual few spins it does the job.

  4. user
    true_qvmn
    23/07/2026 à 10h57  commentaire modifé
    So, a bloke at work put me onto true fortune casino last year and I've been on it ever since. I'm UK based so I always look at whether GBP and the usual cards worked, and that side of things has been fine. Game-wise there's honestly massive, I'd guess around a couple of thousand slots and table games if not more. Loads from the big names — Pragmatic Play, Play'n GO, NetEnt, Betsoft and Microgaming on the roster. I mostly spin Gates of Olympus, and a bit of Book of Dead when I'm bored, though the filtering is a bit clunky if I'm honest. If you're into live stuff, Evolution handle the live dealers — actual human dealers, roulette and blackjack and Crazy Time and the other game shows which I get sucked into more than I should. The welcome side of things, what you get starting out was decent enough — a deposit match with some free spins bundled in. Do check the wagering first, I think it was 35x which isn't the worst but still catches people out. There's usually a no-deposit chip floating around too, so you can check the current codes over on true fortune sign up bonus rather than taking the first thing you see. Min deposit is low, about ?10 I think, so you're not risking much to try it out. Getting money out has been honestly the real test. Payments-wise I stick to Mastercard and Neteller, and they take e-wallets and Bitcoin. Skrill withdrawals cleared in about 48 hours, though there's the usual pending period. My only real moan — verification took a couple of goes which was faffy. Runs fine on mobile — there's no dedicated app, it's browser-based, plays smooth on the Android. Support's been alright, answered within a few minutes. It's licensed, which put my mind at ease. Not perfect, but for a casual few spins it does the job.

  5. user
    RichardNix
    23/07/2026 à 10h50  commentaire modifé

Ajoutez un commentaire :