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
|
<style>
.wrapper {
height: 300px;
width: 30%;
margin: 0 auto;
background-color: rgb(165, 177, 177);
/* overflow: hidden; */
}
.inner {
width: 225%;
height: 80%;
position: relative;
left: -100%;
top: 10%;
}
.img {
width: 11.111%;
height: 100%;
float: left;
text-align: center;
font-size: 100px;
color: white;
}
.img1 {
background-color: rgb(80, 213, 218);
}
.img2 {
background-color: rgb(124, 230, 98);
}
.img3 {
background-color: rgb(241, 94, 173);
}
.img4 {
background-color: rgb(248, 190, 97);
}
</style>
<div class="wrapper">
<div class="inner">
<div class="img img1">1</div>
<div class="img img2">2</div>
<div class="img img3">3</div>
<div class="img img4">4</div>
<div class="img img1">1</div>
<div class="img img2">2</div>
<div class="img img3">3</div>
<div class="img img4">4</div>
<div class="img img1">1</div>
</div>
</div>
|