Example url background in scss
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{{title}}
|
{{title}}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
.title {
|
.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 */
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
src/assets/background.jpg
Normal file
BIN
src/assets/background.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 735 KiB |
Reference in New Issue
Block a user