649699 vues

CSS

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

15189 Commentaire(s)
  1. user
    kypit aifon_cdsl
    08/07/2025 à 07h24  commentaire modifé
    купить айфон 14 про в москве оригинал https://www.kupit-ajfon-cs.ru .

  2. user
    WalterFep
    08/07/2025 à 02h11  commentaire modifé
    Greetings! We are pleased to offer modern device for dynamic balancing of rotating equipment - portable balancing device Balanset-1A. Official product page: https://vibromera.eu/shop/889/ Professional vibration analysis set Application Areas Balanset-1A is actively applied for vibration adjustment of diverse kinds rotor units: Industrial Equipment: Fans - manufacturing, centrifugal, duct. Pumping Equipment - gear, chemical. Motors - synchronous. Turbo Units - gas. Compressors - screw. Processing Equipment: Tool Spindles - lathe. Grinding Discs. Shafts of paper machines. Agricultural Machinery: Combine Rotors. Rotary Mowers. Crushing Units for grain. Special Equipment: Centrifuges - medical. Air Blowers. Mills. Transmission Shafts. Agricultural machinery diagnostics Technical Specifications Main Parameters: Correction planes: 1 or 2. Frequency range: 200 to 15,000 revolutions per minute. Phase determination accuracy: ±1°. Vibration error: ±5%. Number of measurement channels: 2. Vibration velocity measurement range: 0.1 to 300 mm/s. Power source: USB powered. Total weight: 4 kg. System Capabilities: Automatic calculation of compensating masses. Database of measurements. Standards determination according to ISO 1940. Frequency analysis of vibration. Data visualization in polar coordinates. Split weight calculation. Index balancing of mandrels. Delivery Set Basic Kit: USB measurement module (1 pc.) - ensures data transfer between sensors and computer. Vibration sensors (2 pcs.) - Output signal: 100 mV/g. Bandwidth: 0.5-10,000 Hz. Mounting: magnetic base. Accelerometer with magnetic base Optical tachometer (1 pc.) - Working range: up to 1.5 m. Non-contact measurement for safe operation. Laser tachometer MS2234 Holder for phase sensor (1 pc.) - Magnetic strength: 60 kgf. Variable angles for accurate readings. Adjustable sensor mount Electronic scales up to 500 g (1 pc.) - Accuracy: 0.01 g. Essential for correct weight calculation. Software Balanset-1A - Intuitive operation. Windows compatible. Multiple language support. Balancing program settings Transport case (1 pc.) - Robust design. Protective padding for secure storage. Technical documentation - Detailed instructions. Practical examples. Interface cables - Durable interference-free connections. Benefits of Balanset-1A Technical Benefits: ? Accurate Results - Innovative technologies of digital filtering guarantee dependable measurements. ? Compactness - Small dimensions enables in-place adjustment without disassembly. ? Versatility - Applicable to any types rotors from compact motors to heavy rotors. ? User Convenience - Clear controls requires no special training. Precision rotor balancing process Economic Effect: ? Expense Cutting on operation through timely diagnostics - up to 70% of unplanned downtime. ? Durability Enhancement by 50-200% - properly maintained rotors lasts longer. ? Energy Consumption Reduction by 5-15% - balanced rotors operate efficiently. ? Short ROI Period - from 3 to 12 months depending on application frequency. Support We offer: Specialist Preparation - practical sessions online. Certification program encompasses complete methodology. Consultations - on-site assistance. Email support for quick problem solving. Verification and Calibration - periodic verification to maintain accuracy. Device Leasing - ideal for trial operations. Monthly hire periods available. Industrial equipment balancing Pricing Valid Rates: Balanset-1A Portable Balancer & Vibration Analyzer: €1,751.00 Balanset-1A OEM Version: €1,561.00 Additional Vibration Sensor: €90.00 Optical Sensor (Laser Tachometer): €124.00 Magnetic Stand 60 kgf: €46.00 Reflective Tape: €10.00 Multi-channel vibration analyzer Shipping Conditions: Shipping period: in stock. Guarantee period: 24 months comprehensive coverage. Settlement: 100% prepayment. Delivery: international shipping via courier service. Our Advantages Direct Manufacturer - original equipment with complete service. Certified Specialists with deep knowledge in predictive maintenance. Full Service - from delivery to maintenance and education. Ready Stock - fast shipment for common configurations. Individual Approach for large orders including preferred rates. Full vibration analysis set With best wishes, Professional experts group P.S. Ask for presentation of the equipment today and get special conditions!

  3. user
    otdyh_arhipo_osipovka_ntPn
    08/07/2025 à 00h29  commentaire modifé
    Пляжный сезон 2025 в Архипо-Осиповке обещает быть насыщенным. Подберите тур или составьте индивидуальную программу. Подробности об организации отдых в архипо осиповке 2025 на нашем ресурсе. Отдых в Архипо-Осиповке — отличный выбор для любителей природы. Сюда часто приезжают туристы, желающие насладиться теплым морем и живописными пейзажами. Местные пляжи отличаются чистотой и комфортом, что делает их идеальными для семейного отдыха. На пляжах Архипо-Осиповки доступны различные водные виды спорта и развлекательные программы. Архипо-Осиповка предлагает разнообразные варианты проживания для туристов. От комфортабельных отелей до уютных гостевых домов — выбор за вами. Здесь вы найдете множество развлечений для всей семьи. Прогулки по набережной, экскурсии и местные фестивали — все это создаст незабываемые впечатления.

  4. user
    +7 (499) 638-25-37
    07/07/2025 à 23h39  commentaire modifé
    Электрические рулонные шторы на окна, функциональность и современность. Идеальное решение для современных окон, качество и надежность. Электрические шторы для умного дома, функциональность. Управление рулонными шторами одним нажатием, все под контролем. Как выбрать электрические рулонные шторы, для создания уюта. Умные рулонные шторы: необычные решения, доступные решения для вашего дома. Электрические шторы: комфортный выбор, для вашего дома и офиса. Какие выбрать электрические рулонные шторы?, для вашего дома. Электрические рулонные шторы: как они работают?, добавляет удобства. Лучшие электрические рулонные шторы на рынке, в идеальном сочетании. Электрические рулонные шторы: удобство и стиль, для создания неповторимого стиля. Электрические рулонные шторы: все, что нужно знать, для вашего офиса. Как правильно выбрать рулонные шторы, с качественными материалами. Электронные шторы для любого интерьера, для создания уюта. Электрические рулонные шторы: преимущества, для вашего комфорта. Установка рулонных штор: пошаговая инструкция, всегда под контролем. Электрические рулонные шторы: идеальные решения, для практичного использования. Электрические рулонные шторы для бизнеса, для улучшения рабочего пространства. Электрические шторы: экономия и комфорт, для вашего интерьера. электрические рулонные шторы на окна электрические рулонные шторы на окна .

  5. user
    WalterFep
    07/07/2025 à 20h40  commentaire modifé
    Dear Colleagues! We have the honor to propose modern device for vibration adjustment of rotor machines - portable balancing device Balanset-1A. Official product page: https://vibromera.eu/shop/889/ Full balancing system Where It's Applied Balanset-1A is widely used for balancing of all sorts of rotating equipment: Industrial Equipment: Fans - manufacturing, supply, axial. Pumping Equipment - screw, chemical. Electromotors - asynchronous. Turbo Units - hydraulic. Compressors - piston. Processing Equipment: Machine Spindles - grinding. Abrasive Wheels. Shafts of paper machines. Agro Equipment: Combine Rotors. Mulchers. Grinding Equipment for feed. Special Applications: Separators - industrial. Blowers. Mills. Cardan Shafts. Field balancing on combine harvester Technical Specifications Primary Indicators: Number of balancing planes: 1-2. Rotation frequency range: 200 to 15,000 RPM. Phase measurement accuracy: ±1°. Vibration measurement accuracy: ±5%. Number of measurement channels: 2. Vibration measurement limits: 0.1 to 300 mm/s. Power source: From computer USB port. Total weight: 4 kg. Functional Capabilities: Automated computation of correction masses. Data storage of operations. Tolerance calculation according to ISO 1940. Frequency analysis of vibration. Data visualization in real time. Split weight calculation. Runout compensation of mandrels. Package Contents Basic Kit: USB measurement module (1 pc.) - delivers signal processing between measurement system and PC. Accelerometers (2 pcs.) - Output signal: 100 mV/g. Operating frequencies: 0.5-10,000 Hz. Installation: adhesive mounting. Vibration sensor with cable Speed sensor (1 pc.) - Working range: up to 1.5 m. Contactless operation for maximum safety. Laser tachometer MS2234 Magnetic stand for phase sensor (1 pc.) - Holding force: 60 kgf. Flexible mounting for accurate readings. Professional magnetic stand Precision scales up to 500 g (1 pc.) - Precision: 0.01 g. Required for precise weight measurement. Software Balanset-1A - User-friendly interface. PC-based. International versions. Balancing program settings Carrying case (1 pc.) - Robust design. Foam inserts for secure storage. Operating instructions - Comprehensive guide. Practical examples. Interface cables - Durable noise-resistant wiring. Advantages of Balanset-1A Technical Benefits: ? Precision Measurements - Innovative technologies of data analysis ensure reliable results. ? Mobility - Light weight facilitates in-place adjustment without removal. ? Versatility - Works with any types rotors from small fans to massive shafts. ? Simple Operation - User-friendly software requires no special training. Precision rotor balancing process Economic Effect: ? Cost Reduction on operation through failure prevention - 50-80% of unexpected breakdowns. ? Equipment Life Extension by 50-200% - properly maintained rotors lasts longer. ? Energy Efficiency by 5-15% - balanced rotors operate efficiently. ? Short ROI Period - from 3 to 12 months depending on operational scale. Support Available to you: Specialist Preparation - comprehensive sessions at your site. Certification program encompasses full procedures. Technical Support - remote help. Video conferences for quick problem solving. Verification and Calibration - annual calibration to guarantee reliability. Temporary Use - suitable for short-term needs. Monthly hire periods available. Industrial equipment balancing Pricing Current Pricing: Balanset-1A Portable Balancer & Vibration Analyzer: €1,751.00 Balanset-1A OEM Version: €1,561.00 Additional Vibration Sensor: €90.00 Optical Sensor (Laser Tachometer): €124.00 Magnetic Stand 60 kgf: €46.00 Reflective Tape: €10.00 Multi-channel vibration analyzer Delivery Terms: Shipping period: 3-5 business days. Guarantee period: 24 months comprehensive coverage. Payment terms: negotiable. Shipping: international shipping via courier service. Our Advantages Official Supplier - genuine products with complete service. Certified Specialists with extensive experience in vibration diagnostics. Full Service - from supply to support and skill development. Warehouse Inventory - minimal lead time for common configurations. Individual Approach for large orders including preferred rates. Full vibration analysis set At your service, Balancing specialists team P.S. Ask for presentation of the equipment today and take advantage of offers!

Ajoutez un commentaire :