test overflow mobile
2 years 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>