Update style.css
Browse files
style.css
CHANGED
@@ -1,28 +1,34 @@
|
|
1 |
-
body {
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
9 |
}
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
margin-top: 5px;
|
16 |
}
|
17 |
|
18 |
-
.
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
margin-bottom: 0;
|
28 |
}
|
|
|
1 |
+
body, html {
|
2 |
+
margin: 0;
|
3 |
+
padding: 0;
|
4 |
+
width: 100%;
|
5 |
+
height: 100%;
|
6 |
+
overflow: hidden;
|
7 |
+
display: flex;
|
8 |
+
justify-content: center;
|
9 |
+
align-items: center;
|
10 |
}
|
11 |
|
12 |
+
.slider-container {
|
13 |
+
width: 90%;
|
14 |
+
height: 80%;
|
15 |
+
overflow: hidden;
|
16 |
+
position: relative;
|
17 |
}
|
18 |
|
19 |
+
.slider {
|
20 |
+
display: flex;
|
21 |
+
width: calc(300% + 60px); /* 3 slides and 20px gap between them */
|
22 |
+
transition: transform 0.5s ease-in-out;
|
|
|
23 |
}
|
24 |
|
25 |
+
.slide {
|
26 |
+
width: calc(33.3333% - 40px); /* minus gap */
|
27 |
+
height: 100%;
|
28 |
+
margin: 0 20px; /* gap */
|
29 |
+
background-color: #ccc;
|
30 |
+
display: flex;
|
31 |
+
justify-content: center;
|
32 |
+
align-items: center;
|
33 |
+
font-size: 2em;
|
|
|
34 |
}
|