Introduction au CSS
Pourquoi du CSS ?
Un peu de style
Le CSS définit le style de la page :
...
2. Fonctionnement
Des consignes dans un fichier css
HTML sans CSS
HTML avec CSS
page.html
page.css
Sélecteur
C’est le nom de l'élément HTML qui auront le style appliqué (ici les éléments p).
Déclaration
C’est une règle qui détermine les propriétés de l’élément
(ici la couleur de texte en rouge)
2.Propriétés
Let’s start with the first set of slides
Quelques propriétés
Propriété | Rôle | Exemple de valeurs | Conseils |
color | Couleur du texte | blue, red, #1C6EA4 | Utiliser un color-picker ! |
height | Hauteur | 250px | |
width | Largeur | 500px | |
background-color | Couleur de fond | yellow, black, #aab1c3 | Utiliser un color-picker ! |
font-family | Police utilisé | | Arial, Times new Roman, Impact, Verdanna |
font-size | Taille de la police | 1em | Taille de la police |
CheatSheet
Sélecteur
C’est le nom de l'élément HTML qui auront le style appliqué (ici les éléments p).
Exercice
Propriété | Rôle | Exemple de valeurs | Conseils |
color | Couleur du texte | blue, red, #1C6EA4 | Utiliser un color-picker ! |
height | Hauteur | 250px | |
width | Largeur | 500px | |
background-color | Couleur de fond | yellow, black, #aab1c3 | Utiliser un color-picker ! |
font-family | Police utilisé | | Arial, Times new Roman, Impact, Verdanna |
font-size | Taille de la police | 1em | Taille de la police |
FICHIER.CSS
p {
font-family: Arial
}
h1 {
}
Compléter le fichier css afin de :
3.Classes
Live Demo
Classes
4.Span et Div
Des balises qui ne servent à rien
La balise DIV
<div class=”inventaire”>
<img src=”pikachu.png”>
<img src=”dracofeu.png”>
</div>
.inventaire {
border-width: 2px;
}
Site web réactif
Site web réactif
Un site web réactif est un site web qui s’adapte à la taille de l’écran.
❤
Exemple avec FlexBox
Use diagrams to explain your ideas
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
Lorem Ipsum
And tables to compare data
| A | B | C |
Yellow | 10 | 20 | 7 |
Blue | 30 | 15 | 10 |
Orange | 5 | 24 | 16 |
Maps
Find more maps at slidescarnival.com/extra-free-resources-icons-and-maps
our office
89,526,124
Whoa! That’s a big number, aren’t you proud?
89,526,124$
100%
185,244 users
That’s a lot of money
Total success!
And a lot of users
Our process is easy
Vestibulum congue tempus
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. Donec facilisis lacus eget mauris.
Vestibulum congue tempus
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. Donec facilisis lacus eget mauris.
Vestibulum congue tempus
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor. Donec facilisis lacus eget mauris.
03
01
02
Let’s review some concepts
Yellow
Is the color of gold, butter and ripe lemons. In the spectrum of visible light, yellow is found between green and orange.
Blue
Is the colour of the clear sky and the deep sea. It is located between violet and green on the optical spectrum.
Red
Is the color of blood, and because of this it has historically been associated with sacrifice, danger and courage.
Yellow
Is the color of gold, butter and ripe lemons. In the spectrum of visible light, yellow is found between green and orange.
Blue
Is the colour of the clear sky and the deep sea. It is located between violet and green on the optical spectrum.
Red
Is the color of blood, and because of this it has historically been associated with sacrifice, danger and courage.
You can insert graphs from Excel or Google Sheets
Mobile project
Show and explain your web, app or software projects using these gadget templates.
Place your screenshot here
Tablet project
Show and explain your web, app or software projects using these gadget templates.
Place your screenshot here
Desktop project
Show and explain your web, app or software projects using these gadget templates.
33
Place your screenshot here
Thanks!
Any questions?
You can find me at
34
Credits
Special thanks to all the people who made and released these awesome resources for free:
Presentation design
This presentation uses the following typographies:
Download for free at:�https://www.fontsquirrel.com/fonts/inter
You don’t need to keep this slide in your presentation. It’s only here to serve you as a design guide if you need to create new slides or download the fonts to edit the presentation in PowerPoint®
SlidesCarnival icons are editable shapes. ��This means that you can:
Isn’t that nice? :)��Examples:���
Find more icons at slidescarnival.com/extra-free-resources-icons-and-maps
Diagrams and infographics
You can also use any emoji as an icon!�And of course it resizes without losing quality.
How? Follow Google instructions https://twitter.com/googledocs/status/730087240156643328
🤔 ✋👆👉👍👤👦👧👨👩👪💃🏃💑❤😂😉😋😒😭👶😸🐟🍒🍔💣📌📖🔨🎃🎈🎨🏈🏰🌏🔌🔑 and many more...
😉
Free templates for all your presentation needs
Ready to use, professional and customizable
100% free for personal or commercial use
Blow your audience away with attractive visuals
For PowerPoint and Google Slides