Update style.css
Browse files
style.css
CHANGED
@@ -10,25 +10,30 @@ body, html {
|
|
10 |
}
|
11 |
|
12 |
.slider-container {
|
13 |
-
width:
|
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:
|
27 |
height: 100%;
|
28 |
-
margin: 0
|
29 |
background-color: #ccc;
|
30 |
display: flex;
|
31 |
justify-content: center;
|
32 |
align-items: center;
|
33 |
font-size: 2em;
|
34 |
-
}
|
|
|
10 |
}
|
11 |
|
12 |
.slider-container {
|
13 |
+
width: 80%; /* ์ฌ๋ผ์ด๋ ์ปจํ
์ด๋์ ๋๋น๋ฅผ ์ค์
๋๋ค */
|
14 |
height: 80%;
|
15 |
overflow: hidden;
|
16 |
position: relative;
|
17 |
+
margin: 0 auto;
|
18 |
+
display: flex;
|
19 |
+
justify-content: center;
|
20 |
+
align-items: center;
|
21 |
}
|
22 |
|
23 |
.slider {
|
24 |
display: flex;
|
|
|
25 |
transition: transform 0.5s ease-in-out;
|
26 |
+
justify-content: flex-start; /* ์ฌ๋ผ์ด๋๋ฅผ ์ผ์ชฝ์์ ์์ํ๋๋ก ์ ๋ ฌ */
|
27 |
+
padding: 0 20%; /* ์ข์ฐ ์ฌ๋ผ์ด๋ ๋ฏธ๋ฆฌ๋ณด๊ธฐ๋ฅผ ์ํด ํจ๋ฉ ์ถ๊ฐ */
|
28 |
}
|
29 |
|
30 |
.slide {
|
31 |
+
width: 60%; /* ์ฌ๋ผ์ด๋ ๋๋น๋ฅผ ์ค์ฌ์ ์ข์ฐ ์ฌ๋ผ์ด๋๊ฐ ๋ณด์ด๋๋ก ํฉ๋๋ค */
|
32 |
height: 100%;
|
33 |
+
margin: 0 10px; /* ์ฌ๋ผ์ด๋ ์ฌ์ด์ ๊ฐ๊ฒฉ */
|
34 |
background-color: #ccc;
|
35 |
display: flex;
|
36 |
justify-content: center;
|
37 |
align-items: center;
|
38 |
font-size: 2em;
|
39 |
+
}
|