Price table markup


/ Published in: HTML
Save to your folder(s)

Price table sample markup

UPDATE 1: with CSS styles


Copy this code and paste it in your HTML
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
  4. <head>
  5. <title>price table</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  7. <style type="text/css">
  8. body { font-family: Arial, Helvetica, sans-serif; background: #cecece; font-size: 10pt; }
  9. table.price { border-collapse: collapse; width: 637px; margin: 0 auto; }
  10. table.price th, table.price td { padding: 2px; }
  11. table.price thead th { text-align: left; }
  12. table.price td { border-left: 1px solid #ffffff; border-top: 1px solid #ffffff; }
  13. table.price tbody th { border-top: 1px solid #ffffff; }
  14. table.price td a { position: relative; }
  15. table.price td a dfn { display: none; position: absolute; width: 264px; top: 2em; left: 5px; background: #ffffff; z-index: 10; font-style: normal; padding: 5px; border: 5px solid #000000; font-size: 0.8em; color: #000000; font-weight: normal; }
  16. table.price td a:hover { text-decoration: none; }
  17. table.price td a:hover dfn { display: block; }
  18. table.price td a dfn img { border: none; }
  19. table.price td a dfn strong { font-weight: bold; }
  20. table.price tr.odd td { background: #a2a2a2; }
  21. </style>
  22. </head>
  23. <body>
  24. <!--
  25. img small: 165x83
  26. img big: 264x133
  27. -->
  28. <table class="price" width="100%" cellspacing="0" cellpadding="0" border="0">
  29. <col width="169" />
  30. <col width="140" />
  31. <col width="*" />
  32. <col width="*" />
  33. <col width="*" />
  34. <col width="*" />
  35. <col width="*" />
  36. <tr>
  37. <th><!-- --></th>
  38. <th><!-- --></th>
  39. <th>01.04.2009 - 01.05.2009</th>
  40. <th>01.05.2009 - 01.08.2009</th>
  41. <th>01.08.2009 - 01.10.2009</th>
  42. <th>01.11.2009 - 01.01.2010</th>
  43. </tr>
  44. </thead>
  45. <tr class="even">
  46. <th><img src="img/sample-room01-small.jpg" width="165" height="83" alt="Doppelzimmer TYP Beispiel 1" /></th>
  47. <td>
  48. Doppelzimmer:<br />
  49. <a href="#">
  50. TYP Beispiel 1
  51. <dfn>
  52. <img src="img/sample-room01-big.jpg" width="264" height="133" border="0" alt="Doppelzimmer TYP Beispiel 1" />
  53. <strong>TYP Beispiel 1</strong><br />
  54. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  55. </dfn>
  56. </a>
  57. </strong>
  58. </td>
  59. <td>€ 10,00</td>
  60. <td>€ 110,00</td>
  61. <td>€ 83,00</td>
  62. <td>€ 12,00</td>
  63. </tr>
  64. <tr class="odd">
  65. <th><img src="img/sample-room02-small.jpg" width="165" height="83" alt="[ZIMMERTYP] [ZIMMERNAME]" /></th>
  66. <td>
  67. Einzelzimmer:<br />
  68. <a href="#">
  69. TYP Beispiel 2
  70. <dfn>
  71. <img src="img/sample-room02-big.jpg" width="264" height="133" border="0" alt="Einzelzimmer TYP Beispiel 2" />
  72. <strong>TYP Beispiel 2</strong><br />
  73. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  74. </dfn>
  75. </a>
  76. </strong>
  77. </td>
  78. <td>€ 130,00</td>
  79. <td>€ 20,00</td>
  80. <td>€ 10,00</td>
  81. <td>€ 15,00</td>
  82. </tr>
  83. <tr class="even">
  84. <th><img src="img/sample-room01-small.jpg" width="165" height="83" alt="Doppelzimmer TYP Beispiel 1" /></th>
  85. <td>
  86. Doppelzimmer:<br />
  87. <a href="#">
  88. TYP Beispiel 1
  89. <dfn>
  90. <img src="img/sample-room01-big.jpg" width="264" height="133" border="0" alt="Doppelzimmer TYP Beispiel 1" />
  91. <strong>TYP Beispiel 1</strong><br />
  92. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  93. </dfn>
  94. </a>
  95. </strong>
  96. </td>
  97. <td>€ 10,00</td>
  98. <td>€ 110,00</td>
  99. <td>€ 83,00</td>
  100. <td>€ 12,00</td>
  101. </tr>
  102. <tr class="odd">
  103. <th><img src="img/sample-room02-small.jpg" width="165" height="83" alt="[ZIMMERTYP] [ZIMMERNAME]" /></th>
  104. <td>
  105. Einzelzimmer:<br />
  106. <a href="#">
  107. TYP Beispiel 2
  108. <dfn>
  109. <img src="img/sample-room02-big.jpg" width="264" height="133" border="0" alt="Einzelzimmer TYP Beispiel 2" />
  110. <strong>TYP Beispiel 2</strong><br />
  111. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
  112. </dfn>
  113. </a>
  114. </strong>
  115. </td>
  116. <td>€ 130,00</td>
  117. <td>€ 20,00</td>
  118. <td>€ 10,00</td>
  119. <td>€ 15,00</td>
  120. </tr>
  121. </tbody>
  122. </table>
  123. </body>
  124. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.