Skip to content

Commit 3d7b3a3

Browse files
committed
Background Images - background-size
1 parent ac2fec8 commit 3d7b3a3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

styles.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
/* background-repeat */
1+
/* background-size */
22

33
div {
44
height: 300px;
55
color: white;
6-
/* border: 2px solid red; */
6+
border: 2px solid red;
77
}
88

99
.big-img {
1010
background: url("./big.jpeg");
1111
background-repeat: no-repeat;
12+
background-size: cover;
1213
}
1314

1415
.small-img {
1516
background: url("./small.jpeg");
16-
background-repeat: repeat-x;
17-
background-repeat: repeat-y;
18-
background-repeat: space;
19-
background-repeat: round;
2017
background-repeat: no-repeat;
18+
background-size: cover;
2119
}
2220

2321
.folder-img {
2422
background: url("./images/folder-img.jpeg");
25-
background-repeat: no-repeat;
23+
/* background-repeat: no-repeat; */
24+
background-size: contain;
2625
}

0 commit comments

Comments
 (0)