test overflow mobile
1 month ago in HTML
<html>
<head>
<style>
@charset "UTF-8";

html {
background-color: white;
}

.wrapper {
width: 400px
}

.infinite {
border: green 1px solid;
width: 100%;
overflow-x: scrollbar;
overflow-y: hidden;
}

.middle {
width: max-content;
display: flex;
gap: 5px;
background:red;
}
.middle h1 {
color: #fff;
}
.middle input[type=radio] {
display: none;
}
.middle input[type=radio]:checked + .box {
background-color: #75553F;
color: white;
}
.middle .box {
padding:10px 5px;
height: 50px;
background-color: #fff;
color: #75553F;
border: 2px solid #75553F;
transition: all 250ms ease;
will-change: transition;
cursor: pointer;
font-weight: 900;
display: grid;
place-items: center;
font-size: 1.5em;
user-select: none;
}

</style>
</head>
<body>
<div class="wrapper">
<div class="infinite">
<div class="middle">
<label>
<input type="radio" name="radio" checked />
<div class="front-end box">
2 Single Beds
</div>
</label>

<label>
<input type="radio" name="radio" />
<div class="back-end box">
1 Double Bed
</div>
</label>
<label>
<input type="radio" name="radio" />
<div class="back-end box">
Twin Beds
</div>
</label>
</div>
</div>
</div>
</body>
</html>
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