-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
76 lines (69 loc) · 1.64 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scrollable Layout</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: auto;
}
.container {
display: grid;
grid-template-columns: 6fr 3fr;
width: 80vw; /* Adjust width as needed */
gap: 1rem;
padding: 1rem;
overflow-x: auto;
}
.middle, .right {
display: flex;
flex-direction: column;
}
.title {
background-color: #f0f0f0;
margin-bottom: 1rem;
padding: 0.5rem;
}
.card {
background-color: #ccc;
margin-bottom: 1rem;
padding: 1rem;
border-radius: 5px;
}
.scrollable {
overflow-y: auto;
max-height: 100vh;
}
.right {
padding-right: 0rem; /* Adjust gap on the left of the right column */
}
.middle {
padding-left: 14rem; /* Adjust gap on the left of the right column */
}
</style>
</head>
<body>
<div class="container">
<div class="middle scrollable">
<div class="title">Middle Title</div>
<div class="card">Middle Card 1</div>
<div class="card">Middle Card 2</div>
<div class="card">Middle Card 3</div>
</div>
<div class="right">
<div class="title">Right Title 1</div>
<div class="card">Right Card 1</div>
<div class="card">Right Card 2</div>
<div class="card">Right Card 3</div>
<div class="card">Right Card 4</div>
</div>
</div>
</body>
</html>