1 of 43

Introduction au CSS

2 of 43

  • Rappel

Pourquoi du CSS ?

3 of 43

Un peu de style

Le CSS définit le style de la page :

  • la taille du texte
  • la couleur du texte
  • la police utilisée
  • les bordures des éléments
  • le fond

...

4 of 43

2. Fonctionnement

5 of 43

Des consignes dans un fichier css

6 of 43

HTML sans CSS

7 of 43

HTML avec CSS

page.html

page.css

8 of 43

Sélecteur

C’est le nom de l'élément HTML qui auront le style appliqué (ici les éléments p).

9 of 43

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)

10 of 43

2.Propriétés

Let’s start with the first set of slides

11 of 43

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

12 of 43

CheatSheet

13 of 43

Sélecteur

C’est le nom de l'élément HTML qui auront le style appliqué (ici les éléments p).

14 of 43

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 :

  • Mettre les paragraphes p en police Verdana
  • Mettre les titres principaux h1 en couleur vert
  • Mettre les images en 200 pixels (hauteur et largeur

15 of 43

3.Classes

16 of 43

Live Demo

17 of 43

Classes

18 of 43

4.Span et Div

Des balises qui ne servent à rien

19 of 43

La balise DIV

<div class=”inventaire”>

<img src=”pikachu.png”>

<img src=”dracofeu.png”>

</div>

.inventaire {

border-width: 2px;

}

20 of 43

Site web réactif

21 of 43

Site web réactif

Un site web réactif est un site web qui s’adapte à la taille de l’écran.

22 of 43

Exemple avec FlexBox

23 of 43

Use diagrams to explain your ideas

Lorem Ipsum

Lorem Ipsum

Lorem Ipsum

Lorem Ipsum

Lorem Ipsum

Lorem Ipsum

Lorem Ipsum

24 of 43

And tables to compare data

A

B

C

Yellow

10

20

7

Blue

30

15

10

Orange

5

24

16

25 of 43

Maps

our office

26 of 43

89,526,124

Whoa! That’s a big number, aren’t you proud?

27 of 43

89,526,124$

100%

185,244 users

That’s a lot of money

Total success!

And a lot of users

28 of 43

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

29 of 43

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.

30 of 43

You can insert graphs from Excel or Google Sheets

31 of 43

Mobile project

Show and explain your web, app or software projects using these gadget templates.

Place your screenshot here

32 of 43

Tablet project

Show and explain your web, app or software projects using these gadget templates.

Place your screenshot here

33 of 43

Desktop project

Show and explain your web, app or software projects using these gadget templates.

33

Place your screenshot here

34 of 43

Thanks!

Any questions?

You can find me at

  • @username
  • user@mail.me

34

35 of 43

Credits

Special thanks to all the people who made and released these awesome resources for free:

  • Presentation template by SlidesCarnival
  • Photographs by Unsplash

36 of 43

Presentation design

This presentation uses the following typographies:

  • Titles: Inter Semibold
  • Body copy: Inter Light

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®

37 of 43

SlidesCarnival icons are editable shapes. ��This means that you can:

  • Resize them without losing quality.
  • Change fill color and opacity.
  • Change line color, width and style.

Isn’t that nice? :)��Examples:���

38 of 43

Diagrams and infographics

39 of 43

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...

😉

40 of 43

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

41 of 43

42 of 43

43 of 43