-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground.css
More file actions
33 lines (24 loc) · 974 Bytes
/
background.css
File metadata and controls
33 lines (24 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* Pour faire des background en dégradé:
Linéaire:
background: linear-gradient(blue, red)
background: -webkit-linear-gradient(blue, red)
background: -moz-linear-gradient(blue, red)
background: -ms-linear-gradient(blue, red)
background: -o-linear-gradient(blue, red)
Radial:
Inutile mais:
background: radial-gradient(bleu, red)
Direction:
Pour droite: background: linear-gradient(to right, blue, red)
Pour gauche: background: linear-gradient(to left, blue, red)
Pour en haut: background: linear-gradient(to top, blue, red)
Pour en bas: background: linear-gradient(to bottom, blue, red)
En haut a gauche: background: linear-gradient(to bottom right, blue, red)
Avec les degres (Toujours deg): background: linear-gradient(90deg, blue, red)
*/
body{
background-image: url(assets/background.jpg);
background-repeat: no-repeat;
background-position: center -1000px;
background-attachment: fixed;
}