Skip to content

Commit e87d6de

Browse files
Merge pull request #1 from MuhammadShakir-dev/MuhammadShakir-dev-patch-1
Opacity&Alpha_Channel.html
2 parents c41aa6b + ede2ec9 commit e87d6de

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Opacity&Alpha_Channel.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Opacity and Alpha Channel</title>
8+
9+
<!--CSS Style tag-->
10+
<style>
11+
seciton{
12+
width: 500px;
13+
height: 500px;
14+
margin: auto;
15+
position: absolute;
16+
top: 50%;
17+
left: 50%;
18+
transform: translate(-50%,-50%);
19+
background-color: blue;
20+
border-radius: 5px;
21+
display: inline-block;
22+
}
23+
24+
#rgba{
25+
width: 50%;
26+
height: 50%;
27+
position: absolute;
28+
top: 50%;
29+
left: 50%;
30+
transform: translate(-50%,-50%);
31+
background-color: rgb(0, 179, 255,0.8);
32+
border-radius:5px;
33+
color: white;
34+
text-align: center;
35+
display: grid;
36+
align-items: center;
37+
}
38+
39+
</style>
40+
41+
</head>
42+
<body>
43+
<seciton>
44+
<div id="rgba">Hello there I'm an rgba DIV</div>
45+
</seciton>
46+
</body>
47+
</html>

0 commit comments

Comments
 (0)