test.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4. <title>Wikihiero XHTML/CSS test page</title>
  5. <style type="text/css">
  6. span.hiero {
  7. white-space: nowrap;
  8. text-align: center;
  9. display: block;
  10. height: 46px;
  11. }
  12. span.hiero span,
  13. span.hiero span span,
  14. span.hiero span span span {
  15. margin: 0;
  16. padding: 0;
  17. background-position: center;
  18. background-repeat:no-repeat;
  19. text-align: center;
  20. vertical-align: center;
  21. display: block;
  22. float: left;
  23. }
  24. span.hiero span {
  25. height: 38px;
  26. width: 29px;
  27. }
  28. span.hiero span span {
  29. height: 20px;
  30. width:20px;
  31. }
  32. span.hiero span span span {
  33. height: 12px;
  34. width:14px;
  35. }
  36. /* be nice to bad screenreaders, display: none nodes aren't
  37. ** read by some, most notably claws.
  38. */
  39. span.hiero * code {
  40. display: block;
  41. width: 0;
  42. height: 0;
  43. overflow: hidden;
  44. }
  45. /* debugging */
  46. /*span.hiero span span {
  47. border: 1px solid Red;
  48. }*/
  49. /*
  50. ** Alternate version
  51. */
  52. span.imghiero * {
  53. float: left;
  54. display: block;
  55. text-align: center;
  56. vertical-align: middle;
  57. }
  58. </style>
  59. </head>
  60. <body>
  61. <h3>ROW:</h3>
  62. <tt>&lt;hiero&gt;A1-A2-Aa1*Aa2:Aa3-A3-A4&lt;/hiero&gt;</tt>
  63. <hr />
  64. <h3>TABLE:</h3>
  65. <table border="0" cellspacing="0" cellpadding="0">
  66. <tr>
  67. <td><img src="img/hiero_A1.png" alt="A1" /></td>
  68. <td><img src="img/hiero_A2.png" alt="A2" /></td>
  69. <td>
  70. <table cellspacing="0" cellpadding="0">
  71. <tr><td><img src="img/hiero_Aa1.png" alt="Aa1" /><img src="img/hiero_Aa2.png" alt="Aa2" /></td></tr>
  72. </table>
  73. <center><img src="img/hiero_Aa3.png" alt="Aa3" /></center>
  74. </td>
  75. <td><img src="img/hiero_A3.png" alt="A3" /></td>
  76. <td><img src="img/hiero_A4.png" alt="A4" /></td>
  77. </tr>
  78. </table>
  79. <hr />
  80. <h3>SPAN:</h3>
  81. <span class="hiero hiero-row-s">
  82. <span style='background-image: url("img/hiero_A1.png");'><code>- H -</code></span>
  83. <span style='background-image: url("img/hiero_A2.png");width:27px;'><code>- H -</code></span>
  84. <span style="width:40px;">
  85. <span style='background-image:url("img/hiero_Aa1.png"); width:20px;'><code>a</code></span>
  86. <span style='background-image:url("img/hiero_Aa2.png"); width:20px;'><code>b</code></span>
  87. <span style='background-image:url("img/hiero_Aa3.png"); width:40px;clear:left;'><code>c</code></span>
  88. </span>
  89. <span style='background-image:url("img/hiero_A3.png");width:28px;'><code>- h -</code></span>
  90. <span style='background-image:url("img/hiero_A4.png");'><code>- h -</code></span>
  91. </span>
  92. <hr />
  93. <h3>ROW:</h3>
  94. <tt>&lt;hiero&gt;A1-A2-(Aa1-Aa2:Aa3):Aa4-A3-A4&lt;/hiero&gt;</tt>
  95. <hr />
  96. <h3>TABLE:</h3>
  97. <table border='0' cellspacing='0' cellpadding='0'>
  98. <tr>
  99. <td><img src='img/hiero_A1.png' alt="A1" /></td>
  100. <td><img src='img/hiero_A2.png' alt="A2" /></td>
  101. <td>
  102. <table cellspacing='0' cellpadding='0'>
  103. <tr>
  104. <td><img src="img/hiero_Aa1.png" alt="Aa1" height="12" /></td>
  105. <td><center><img src="img/hiero_Aa2.png" alt="Aa2" height="12" /><br /><img src="img/hiero_Aa3.png" alt="Aa3" height="12" /></center></td>
  106. </tr>
  107. </table>
  108. <center><img src="img/hiero_Aa4.png" alt="Aa4" height="12" /></center>
  109. </td>
  110. <td><img src="img/hiero_A3.png" alt="A3" /></td>
  111. <td><img src="img/hiero_A4.png" alt="A4" /></td>
  112. </tr>
  113. </table>
  114. <hr/>
  115. <h3>SPAN:</h3>
  116. <span class="hiero hiero-row-s">
  117. <span style='background-image:url("img/hiero_A1.png");'><code>- H -</code></span>
  118. <span style='background-image:url("img/hiero_A2.png");width:27px;'><code>- H -</code></span>
  119. <span>
  120. <span style='background-image:url("img/hiero_Aa1.png");width:12px;'><code>b</code></span>
  121. <span style="width:12px">
  122. <span style='background-image:url("img/hiero_Aa2.png");'><code>d</code></span>
  123. <span style='background-image:url("img/hiero_Aa3.png");clear:left;'><code>d</code></span>
  124. </span>
  125. <span style='background-image:url("img/hiero_Aa4.png");clear:left;width:29px;'><code>a</code></span>
  126. </span>
  127. <span style='background-image:url("img/hiero_A3.png");width:28px;'><code>- H -</code></span>
  128. <span style='background-image:url("img/hiero_A4.png");'><code>- H -</code></span>
  129. </span>
  130. <h3>Span with images:</h3>
  131. <span class="imghiero">
  132. <img src='img/hiero_A1.png' alt="H"/>
  133. <img src='img/hiero_A2.png' alt="H"/>
  134. <span>
  135. <img src='img/hiero_Aa1.png' style="margin-top:6px;height:12px;" alt="b"/>
  136. <span>
  137. <img src='img/hiero_Aa2.png' style="margin-left:3px;height:12px;" alt="d"/>
  138. <img src='img/hiero_Aa3.png' style="height:12px;clear:left;" alt="d"/>
  139. </span>
  140. <img src='img/hiero_Aa4.png' style="height:12px;clear:left;" alt="a"/>
  141. </span>
  142. <img src='img/hiero_A3.png' alt="H"/>
  143. <img src='img/hiero_A4.png' alt="H"/>
  144. </span>
  145. </body>
  146. </html>