Skip to content

Commit

Permalink
Example url background in scss
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegris committed Apr 21, 2017
1 parent cea4be5 commit 3705a35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<h1 class="title">
{{title}}
</h1>

7 changes: 6 additions & 1 deletion src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -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 */
}
Binary file added src/assets/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3705a35

Please sign in to comment.