File: css_position_absolute.html

package info (click to toggle)
php-dompdf 0.6.1%2Bdfsg-2~bpo70%2B2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 4,200 kB
  • sloc: php: 19,599; makefile: 38; sh: 13
file content (60 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (5)
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
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

<title>Printed document</title>

<style type="text/css">

body {
  font-family: sans-serif;
  font-size: 10pt;
	background: #eee;
}

div.absolute {
	border: 2px dotted green;
	position: absolute;
	padding: 0.5em;
	text-align: center;
	vertical-align: middle;
}

</style>
  
</head>

<body>
	<!--
<div class="absolute" style="left: 20px; right: 20px;">
  left/right
</div>-->

<div class="absolute" style="top: 40px; left: 40px;">
  top/left
</div>
<div class="absolute" style="top: 40px; right: 40px;">
  top/right
</div>
<div class="absolute" style="top: 80px; left: 40px; right: 40px;">
  top/left/right
</div>

<div class="absolute" style="top: 160px; left: 160px; right: 160px; bottom: 160px; ">
  top/left/right/bottom
</div>

<div class="absolute" style="bottom: 40px; right: 40px;">
  bottom/right
</div>
<div class="absolute" style="bottom: 40px; left: 40px;">
  bottom/left
</div>
<div class="absolute" style="bottom: 80px; left: 40px; right: 40px;">
  bottom/left/right
</div>

</body>

</html>