forked from TheGuyDangerous/FoodCoders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.css
130 lines (115 loc) · 2.06 KB
/
carousel.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
body{
font-family: 'Poppins' , sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/* Slideshow container */
.slideshow-container {
max-width: 1000px;
position: relative;
margin: 181px 250px;
}
.carousel-box {
display: flex;
}
.carousel-text {
width: 100%;
position: relative;
min-height: 1px;
padding: 85px 16px 0 115px;
}
.carousel-img {
display: block;
width: 35vw;
}
review{
padding: 7px;
margin: 17px;
position: relative;
right: 23px;
}
.heading{
display: flex;
justify-content: center;
align-items: center;
position: relative;
top:50px;
}
img{
width: 509px;
height:339px;
}
/* Hide the images by default */
.mySlides {
display: none;
height: 38vh;
width: 61vw;
}
/* Next & previous buttons */
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
color: #302121;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 3px;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px;
}
/* On hover, add a #302121 background color with a little bit see-through */
.prev:hover,
.next:hover {
background-color: rgba(163, 161, 161, 0.8);
}
/* Caption text */
.text {
color: #f2f2f2;
font-size: 15px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
/* Number text (1/3 etc) */
.numbertext {
color: #302121;
font-size: 12px;
position: absolute;
top: 0;
}
.carousel-btn {
background-color: black;
color: white;
border-color: black;
border-width: 10px;
height: 50px;
width: 100px;
border-radius: 20px;
cursor: pointer;
margin-right: 8px;
padding: 15px;
}
.carousel-btn:hover {
opacity: 0.6;
}
.carousel-btn-div {
text-align: center;
justify-content: center;
align-items: center;
}