table_inline.rml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <rml>
  2. <head>
  3. <title>Inline tables</title>
  4. <link type="text/rcss" href="../style.rcss"/>
  5. <link rel="help" href="https://drafts.csswg.org/css2/#value-def-inline-table" />
  6. <meta name="Description" content="Inline tables. The baseline of a table wrapper is simply set its first table cell that has a baseline." />
  7. <style>
  8. table {
  9. line-height: 1.2;
  10. display: inline-table;
  11. margin: 1em 0.5em;
  12. border: 2dp #666;
  13. gap: 5dp;
  14. text-align: center;
  15. }
  16. td {
  17. background: #bbb;
  18. vertical-align: middle;
  19. padding: 5dp;
  20. }
  21. td { width: 25dp; }
  22. td:first-child, td:last-child { width: 40dp; }
  23. </style>
  24. </head>
  25. <body>
  26. <p>
  27. Inline tables
  28. <table>
  29. <tr>
  30. <td>A</td>
  31. <td>B</td>
  32. <td>C</td>
  33. </tr>
  34. <tr>
  35. <td>A</td>
  36. <td>B</td>
  37. <td>C</td>
  38. </tr>
  39. </table>
  40. can be located
  41. <table>
  42. <tr>
  43. <td>A</td>
  44. <td>B</td>
  45. <td>C</td>
  46. </tr>
  47. </table>
  48. in-between
  49. <table>
  50. <tr>
  51. <td>A</td>
  52. <td>B</td>
  53. </tr>
  54. <tr>
  55. <td>A</td>
  56. <td>B</td>
  57. </tr>
  58. <tr>
  59. <td>A</td>
  60. <td>B</td>
  61. </tr>
  62. </table>
  63. text
  64. <table>
  65. <tr>
  66. <td>A<br/>B</td>
  67. </tr>
  68. </table>
  69. .
  70. </p>
  71. <handle size_target="#document"/>
  72. </body>
  73. </rml>