Skip to content

Commit 3705a35

Browse files
committed
Example url background in scss
1 parent cea4be5 commit 3705a35

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/app/app.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<h1 class="title">
22
{{title}}
33
</h1>
4+

src/app/app.component.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.title {
2-
color: red;
2+
color: black;
3+
margin:0;
4+
padding:50px 20px;
5+
background: url(../assets/background.jpg) no-repeat center fixed;
6+
-webkit-background-size: cover; /* pour anciens Chrome et Safari */
7+
background-size: cover; /* version standardisée */
38
}

src/assets/background.jpg

735 KB
Loading

0 commit comments

Comments
 (0)