Skip to content

Commit f64a9b4

Browse files
Update example code
1 parent 0bdf8b8 commit f64a9b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ Cover also needs some styles to be added to your stylesheet:
1717
.something-container {
1818
position: relative;
1919
overflow: hidden;
20-
width: 100%;
21-
height: 100%;
2220
}
2321

2422
.something {
2523
min-width: 100%;
2624
min-height: 100%;
2725

28-
/* Center it */
26+
/* Center it like `background-position: center` */
2927
position: absolute;
3028
left: 50%;
3129
top: 50%;

0 commit comments

Comments
 (0)