-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_04.html
52 lines (36 loc) · 968 Bytes
/
test_04.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
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>Test 04</title>
<link rel="stylesheet" type="text/css" href="test_x.css">
<style type='text/css'>
img {
position: absolute;
top: 0px;
left: 0px;
}
#qrst {
position: absolute;
top: 0px;
left: 0px;
font-size: 200px;
color: red;
font-family: sans-serif;
}
</style>
</head>
<body>
<img src="image_200x200.png" />
<div id='qrst'>
Q R<br>
S T
</div>
<div id='text'>
The image <b>and</b> the div both have <code>position: absolute</code>.
<br>The text is above the image when the div is placed after the image (this page).
<br> When the div is placed before the image, it's put behind the image (<a href='test_03.html'>test_03.html</a>).
<br>See also <a href='test_01.html'>test_01.html</a> and <a href='test_02.html'>test_02.html</a>
</div>
</body>
</html>