Newer
Older
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
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
}
::-webkit-scrollbar {
width: 60px;
height: 60px;
background-color: green;
opacity: 0.75;
}
::-webkit-scrollbar-thumb {
background-color: navy;
opacity: 0.5;
}
.overflow {
position: absolute;
height: 400px;
width: 400px;
overflow: scroll;
}
.contents {
height: 800px;
width: 800px;
}
.backdrop {
position: absolute;
top: 100px;
left: 100px;
height: 400px;
width: 400px;
background-color: gray;
}
.vertical {
width: 150px;
}
.horizontal {
height: 150px;
}
</style>
</head>
<body>
<div class="backdrop vertical"></div>
<div class="backdrop horizontal"></div>
<div class="composited overflow">
<div class="contents"></div>
</div>
</body>
</html>