forked from asana-examples/script-actions-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (32 loc) · 937 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overlapping Background Colors</title>
<style>
.container {
position: relative;
width: 300px;
height: 200px;
background-color: #3498db; /* Bottom background color */
overflow: hidden;
}
.content {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50%; /* Adjust the height to control the overlap */
background-color: rgba(255, 255, 255, 0.7); /* Top background color with transparency */
z-index: 1; /* Ensure it is above the container background */
}
</style>
</head>
<body>
<div class="container">
<div class="content"></div>
</div>
</body>
</html>