File: dom_nbsp.html

package info (click to toggle)
php-dompdf 0.6.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 4,208 kB
  • ctags: 5,137
  • sloc: php: 19,618; makefile: 39; sh: 13
file content (29 lines) | stat: -rw-r--r-- 1,679 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Non-breaking space</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
  <p>Non-breaking space representations:</p>
  <table>
    <tr><td>Non-breaking space character</td><td><span style="background-color: yellow;"> </span></td></tr>
    <tr><td>&amp;nbsp;</td><td><span style="background-color: yellow;">&nbsp;</span></td></tr>
    <tr><td>&amp;#160;</td><td><span style="background-color: yellow;">&#160;</span></td></tr>
    <tr><td>&amp;#xA0;</td><td><span style="background-color: yellow;">&#xA0;</span></td></tr>
  </table>
  <p>With non-breaking space: <span style="border: 1px dotted orange;">&nbsp;a&nbsp;&nbsp;b&nbsp;&nbsp;c&nbsp;</span></p>
  <p>Without non-breaking space: <span style="border: 1px dotted orange;"> a  b  c </span></p>
  <div style="width: 150px; border: 1px dotted orange; overflow: visible;">
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
        <span style="border-bottom: 1px solid green;">no&nbsp;wrap</span>
  </div>
</body>
</html>