-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss3-opacity.html
More file actions
42 lines (40 loc) · 1.36 KB
/
css3-opacity.html
File metadata and controls
42 lines (40 loc) · 1.36 KB
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
<!doctype html>
<html lang=en>
<head>
<title>Opacity and CSS3</title>
<meta charset="utf-8">
<!-- <meta details go here> -->
<meta name="google-adsense-account" content="ca-pub-9639638377144073">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-UA Compatible" content="ie=edge">
<meta name="author" content="Orris A BakerJr">
<meta name="description" content="HTML, Jquery, Javascript, Multimedia document">
<meta name="theme-color" content="#712cf9">
<meta name="keywords" content="HTML5, Node.js, Jquery">
<meta name="author" content="Ian Andolina">
<style type="text/css">
#back-box {position:absolute; top:20px; left:20px; z-index:1; text-align :center; font-size:x-large; font-weight:bold; color:black;
border:0;
width:250px; height:200px;
background-color: rgb(255,255,0);
}
#back-box p {
margin-top:100px;
}
#front-box {position:absolute; top:60px; left:100px; z-index:2; text-align:center; font-size:x-large; font-weight:bold; color:white;
border:4px red solid;
width:250px; height:200px;
background-color: rgb(255,0,0); opacity:0.5;
}
#front-box p {
margin-top:100px;
}
</style>
</head>
<body>
<div id="back-box">
<p>This is the back box</p></div>
<div id="front-box">
<p>This is the front box</p></div>
</body>
</html>