-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathh.css
55 lines (45 loc) · 940 Bytes
/
h.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
}
.slider-container {
position: relative;
max-width: 600px; /* You can change the width */
margin: auto;
overflow: hidden;
}
.slider {
display: flex;
transition: transform 0.4s ease-in-out;
width: 100%; /* To ensure all slides fit */
}
.slide {
min-width: 100%; /* Each slide takes the full width of the container */
}
img {
width: 100%; /* Make sure images cover the slide */
display: block;
}
.prev, .next {
position: absolute;
top: 50%;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px;
cursor: pointer;
transform: translateY(-50%);
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
.prev:hover, .next:hover {
background-color: rgba(0, 0, 0, 0.8);
}