Example url background in scss

This commit is contained in:
Maxime GRIS
2017-04-21 20:19:15 +02:00
parent cea4be57ba
commit 3705a35c73
3 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
<h1 class="title">
{{title}}
</h1>

View File

@@ -1,3 +1,8 @@
.title {
color: red;
color: black;
margin:0;
padding:50px 20px;
background: url(../assets/background.jpg) no-repeat center fixed;
-webkit-background-size: cover; /* pour anciens Chrome et Safari */
background-size: cover; /* version standardisée */
}