We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7b3a3 commit 956705cCopy full SHA for 956705c
styles.css
@@ -1,4 +1,4 @@
1
-/* background-size */
+/* background-position */
2
3
div {
4
height: 300px;
@@ -10,12 +10,20 @@ div {
10
background: url("./big.jpeg");
11
background-repeat: no-repeat;
12
background-size: cover;
13
+ background-position: 20% 50%;
14
+ background-position: center;
15
}
16
17
.small-img {
18
background: url("./small.jpeg");
19
- background-size: cover;
20
21
+ background-position: left;
22
+ background-position: right;
23
+ background-position: bottom;
24
+ background-position: top;
25
+ background-position: 0 0; /* Default behavior */
26
27
28
29
.folder-img {
0 commit comments