File: image_dimensions.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 (50 lines) | stat: -rw-r--r-- 920 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style>
body {
  color: #7d7a7a;
  font-family: 'trebuchet ms', verdana, sans-serif;
}
img {
	margin-bottom: 2em;
}
</style>
</head>

<body>
	
<p>All these images should be nearly of the same size</p>

width=150
<br />
<img width="150" src="images/dompdf_simple.png" />
<br />

width: 40mm
<br />
<img style="width: 40mm;" src="images/dompdf_simple.png" />
<br />

width: 4cm
<br />
<img style="width: 4cm;" src="images/dompdf_simple.png" />
<br />

width: 21%
<br />
<img style="width: 21%;" src="images/dompdf_simple.png" />
<br />

width: 150px
<br />
<img style="width: 150px;" src="images/dompdf_simple.png" />
<br />

width: 110pt
<br />
<img style="width: 110pt;" src="images/dompdf_simple.png" />
<br />

</body> </html>