aboutsummaryrefslogtreecommitdiff
path: root/htmx/static/pico-1.5.11/docs/src/tables.html
blob: d097f00c519b7c1205c8dd43f7c9090cd92b79ba (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!doctype html>
<html lang="en">
  <head>
    ${require('./_head.html') 
      title=`Tables`
      description=`Default styles for tables without .classes`
      canonical=`tables.html`
    }
  </head>

  <body>
    ${require('./_nav.html')}
    
    <main class="container" id="docs">
      ${require('./_sidebar.html') active=`tables-link`}
      
      <div role="document">
        <section id="tables">
          <hgroup>
            <h1>Tables</h1>
            <h2>Default styles for tables without <code>.classes</code></h2>
          </hgroup>
          <figure>
            <table>
              <thead>
                <tr>
                  <th scope="col">#</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <th scope="row">1</th>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                </tr>
                <tr>
                  <th scope="row">2</th>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                </tr>
                <tr>
                  <th scope="row">3</th>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th scope="row">#</th>
                  <td>Total</td>
                  <td>Total</td>
                  <td>Total</td>
                  <td>Total</td>
                  <td>Total</td>
                </tr>
              </tfoot>
            </table>
          </figure>

<pre><code>&lt;<b>table</b>&gt;
  &lt;<b>thead</b>&gt;
    &lt;<b>tr</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;#&lt;/<b>th</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;Heading&lt;/<b>th</b>&gt;
    &lt;/<b>tr</b>&gt;
  &lt;/<b>thead</b>&gt;
  &lt;<b>tbody</b>&gt;
    &lt;<b>tr</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"row"</u>>1&lt;/<b>th</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
    &lt;/<b>tr</b>&gt;
    &lt;<b>tr</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"row"</u>>1&lt;/<b>th</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
    &lt;/<b>tr</b>&gt;
    &lt;<b>tr</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"row"</u>>1&lt;/<b>th</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
      &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
    &lt;/<b>tr</b>&gt;
  &lt;/<b>tbody</b>&gt;
  &lt;<b>tfoot</b>&gt;
    &lt;<b>tr</b>&gt;
      &lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;#&lt;/<b>th</b>&gt;
      &lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
      &lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
      &lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
      &lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
      &lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
    &lt;/<b>tr</b>&gt;
  &lt;/<b>tfoot</b>&gt;
&lt;/<b>table</b>&gt;</code></pre>

          <p><code><i>role</i>=<u>"grid"</u></code> enable striped rows.</p>
          <figure>
            <table role="grid">
              <thead>
                <tr>
                  <th scope="col">#</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                  <th scope="col">Heading</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <th scope="row">1</th>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                </tr>
                <tr>
                  <th scope="row">2</th>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                </tr>
                <tr>
                  <th scope="row">3</th>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                  <td>Cell</td>
                </tr>
              </tbody>
            </table>
          </figure>

<pre><code>&lt;<b>table</b> <i>role</i>=<u>"grid"</u>&gt;
  <em>…</em>
&lt;/<b>table</b>&gt;</code></pre>

        </section>

        ${require('./_footer.html')}
        
      </div>
    </main>
    <script src="js/commons.min.js"></script>
  </body>
</html>