-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
68 lines (58 loc) · 1.23 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
html,body{
background-color: rgb(63, 118, 100);
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #8c52ff;
}
#item1,#item3{
background-color: blueviolet;
}
#item2,#item4{
background-color: cornflowerblue;
}
.carousel-container {
text-align: center;
margin: 290px;
position:relative;
}
.container{
height:300px;
width:300px;
display:flex;
margin:50px;
overflow-x:auto;
overflow-y:hidden;
text-align: center;
scroll-snap-type:x mandatory;
scroll-behavior: smooth;
}
.container .item{
flex: 0 0 300px;
width:300px;
align-items:center;
display:inline-flex;
justify-content:center;
font-size:3rem;
color:white;
font-weight:700;
scroll-snap-align:start;
}
.links a{
background-color: cadetblue;
color:aliceblue;
border-radius:50%;
display:inline-flex;
padding:5px 10px;
text-decoration:none;
margin-left:50px;
}
.links {
display: flex;
justify-content: center;
margin-top: 20px; /* add some margin to separate links from carousel*/
bottom: 0.1; /* add this to stick the links to the bottom of the carousel*/
margin-top:2px;
position:absolute;
}