/
week6-2-questions.html
44 lines (36 loc) · 1.12 KB
/
week6-2-questions.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
#main{
position: relative;
padding: 20px;
background-color: grey;
height: 250px;
}
#main div{padding: 5px;}
#one,#three{ background-color: cyan;height: 50px; }
#two{background-color: darkmagenta;height: 100px;}
/*#two1{position: relative; background-color: skyblue;width: 200px; left: 100px; top: 10px;}*/
/*#two1{position: absolute; background-color: skyblue;width: 200px; right: 0; bottom: 0;}*/
/*#two1{position: absolute; background-color: skyblue;width: 200px; right: 0; bottom: 0;}*/
#two1{position: absolute; background-color: skyblue;width: 200px; right: 0; bottom: 0;}
</style>
</head>
<body>
<div id="main">
<div id="one">I am number one</div>
<div id="two">
<div id="two1">
I am 2.1
</div>
</div>
<div id="three">
I am number three
</div>
</div>
</body>
</html>