|
|
@@ -1,99 +1,94 @@
|
|
|
<rml>
|
|
|
<head>
|
|
|
- <title>Table</title>
|
|
|
+ <title>Table 01</title>
|
|
|
<link type="text/rcss" href="../style.rcss"/>
|
|
|
- <link rel="help" href="https://www.w3.org/TR/2011/REC-CSS2-20110607/visudet.html#inline-replaced-width" />
|
|
|
- <meta name="Description" content="Basic table" />
|
|
|
+ <link rel="help" href="https://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html" />
|
|
|
+ <link rel="match" href="reference/table_01-ref.rml"/>
|
|
|
+ <meta name="Description" content="Basic table layout." />
|
|
|
<style>
|
|
|
- @spritesheet theme
|
|
|
- {
|
|
|
- src: /assets/invader.tga;
|
|
|
- invader: 179px 152px 50px 40px;
|
|
|
+ table {
|
|
|
+ border-width: 20px 5px 0;
|
|
|
+ color: #333;
|
|
|
+ text-align: center;
|
|
|
+ margin: 0 auto;
|
|
|
+ min-width: 100px;
|
|
|
+ max-width: 400px;
|
|
|
}
|
|
|
- body { overflow-x: auto; }
|
|
|
- handle {
|
|
|
- position: fixed;
|
|
|
- background: #555a;
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- bottom: 0px;
|
|
|
- right: 0px;
|
|
|
- clip: 1;
|
|
|
- cursor: resize;
|
|
|
+ table, table * {
|
|
|
+ border-color: #666;
|
|
|
}
|
|
|
- table {
|
|
|
- box-sizing: border-box;
|
|
|
- display: table;
|
|
|
- border: 5px #666;
|
|
|
- gap: 10px 2%;
|
|
|
- height: 50%;
|
|
|
- padding-left: 5px;
|
|
|
- padding-right: 20px;
|
|
|
+ td {
|
|
|
+ padding: 15px 5px;
|
|
|
}
|
|
|
col {
|
|
|
- box-sizing: border-box;
|
|
|
- display: table-column;
|
|
|
- background: #aac;
|
|
|
- border-left: 2px #e3e;
|
|
|
- border-right: 5px #3ce;
|
|
|
- margin: 15px 0;
|
|
|
+ background: #3d3;
|
|
|
}
|
|
|
col:first-child {
|
|
|
- border-left-width: 0;
|
|
|
+ background: #6df;
|
|
|
+ border-right-width: 3px;
|
|
|
}
|
|
|
- col:last-of-type {
|
|
|
- border-right-width: 0;
|
|
|
+ col:nth-child(3) {
|
|
|
+ background: #dd3;
|
|
|
}
|
|
|
- tr {
|
|
|
- box-sizing: border-box;
|
|
|
- display: table-row;
|
|
|
- border-top: 5px #ec3;
|
|
|
- background: #acc;
|
|
|
- padding-top: 5px;
|
|
|
- padding-bottom: 15px;
|
|
|
- margin: 10px 20px;
|
|
|
+ thead {
|
|
|
+ color: black;
|
|
|
+ background: #fff5;
|
|
|
+ border-bottom: 3px #666;
|
|
|
}
|
|
|
- td {
|
|
|
- box-sizing: border-box;
|
|
|
- display: table-cell;
|
|
|
- border-right: 5px red;
|
|
|
- background: #bbb;
|
|
|
+ tbody tr {
|
|
|
+ border-bottom: 1px #666a;
|
|
|
}
|
|
|
- .bottom-right {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- right: 0;
|
|
|
- width: 15px;
|
|
|
- height: 15px;
|
|
|
+ tbody tr:last-child {
|
|
|
+ border-bottom: 0;
|
|
|
+ }
|
|
|
+ tbody tr:hover {
|
|
|
+ background: #fff5;
|
|
|
+ }
|
|
|
+ tfoot {
|
|
|
+ background: #666;
|
|
|
+ color: #ccc;
|
|
|
+ }
|
|
|
+ tfoot td {
|
|
|
+ padding-top: 0px;
|
|
|
+ padding-bottom: 0px;
|
|
|
+ text-align: right;
|
|
|
+ height: 20px;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
-<p>Try resizing the table using the document handle in the lower-right corner.</p>
|
|
|
<table>
|
|
|
- <col span="2" style="min-width: 150px; max-width: 250px;"/>
|
|
|
<col/>
|
|
|
- <col style="min-width: 50px; max-width: 300px;"/>
|
|
|
- <tr>
|
|
|
- <td rowspan="2" colspan="2">Hello</td>
|
|
|
- <td>Whoop!</td>
|
|
|
- <td>World Hi!</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="2">World<br/>Hi!</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="height: 50%;">Cat<div class="bottom-right">X</div></td>
|
|
|
- <td style="padding-left: 30px; padding-top: 50px;" colspan="2">Mouse<div class="bottom-right">X</div></td>
|
|
|
- <td style="border-left: 5px green; border-right-width: 2px; vertical-align: bottom" rowspan="2">RatTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="vertical-align: bottom;">Row<br/>Row</td>
|
|
|
- <td colspan="2">3</td>
|
|
|
- </tr>
|
|
|
+ <col span="2"/>
|
|
|
+ <col/>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <td>A</td>
|
|
|
+ <td colspan="2">B</td>
|
|
|
+ <td>C</td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td>D</td>
|
|
|
+ <td>E</td>
|
|
|
+ <td>F</td>
|
|
|
+ <td>G</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>H</td>
|
|
|
+ <td>I</td>
|
|
|
+ <td>J</td>
|
|
|
+ <td>K</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tfoot>
|
|
|
+ <tr>
|
|
|
+ <td colspan="4">[1] Footnote</td>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
</table>
|
|
|
-<p style="text-align: center;">Paragraph after table.</p>
|
|
|
-<handle size_target="#document"></handle>
|
|
|
+<handle size_target="#document"/>
|
|
|
</body>
|
|
|
</rml>
|