Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
---
2
layout: docs
3
title: Tables
4
description: Documentation and examples for opt-in styling of tables (given their prevalent use in JavaScript plugins) with Bootstrap.
5
group: content
6
toc: true
7
---
8
 
9
## Examples
10
 
11
Due to the widespread use of tables across third-party widgets like calendars and date pickers, we've designed our tables to be **opt-in**. Just add the base class `.table` to any `<table>`, then extend with custom styles or our various included modifier classes.
12
 
13
Using the most basic table markup, here's how `.table`-based tables look in Bootstrap. **All table styles are inherited in Bootstrap 4**, meaning any nested tables will be styled in the same manner as the parent.
14
 
15
{{< example >}}
16
<table class="table">
17
  <thead>
18
    <tr>
19
      <th scope="col">#</th>
20
      <th scope="col">First</th>
21
      <th scope="col">Last</th>
22
      <th scope="col">Handle</th>
23
    </tr>
24
  </thead>
25
  <tbody>
26
    <tr>
27
      <th scope="row">1</th>
28
      <td>Mark</td>
29
      <td>Otto</td>
30
      <td>@mdo</td>
31
    </tr>
32
    <tr>
33
      <th scope="row">2</th>
34
      <td>Jacob</td>
35
      <td>Thornton</td>
36
      <td>@fat</td>
37
    </tr>
38
    <tr>
39
      <th scope="row">3</th>
40
      <td>Larry</td>
41
      <td>the Bird</td>
42
      <td>@twitter</td>
43
    </tr>
44
  </tbody>
45
</table>
46
{{< /example >}}
47
 
48
You can also invert the colors—with light text on dark backgrounds—with `.table-dark`.
49
 
50
{{< example >}}
51
<table class="table table-dark">
52
  <thead>
53
    <tr>
54
      <th scope="col">#</th>
55
      <th scope="col">First</th>
56
      <th scope="col">Last</th>
57
      <th scope="col">Handle</th>
58
    </tr>
59
  </thead>
60
  <tbody>
61
    <tr>
62
      <th scope="row">1</th>
63
      <td>Mark</td>
64
      <td>Otto</td>
65
      <td>@mdo</td>
66
    </tr>
67
    <tr>
68
      <th scope="row">2</th>
69
      <td>Jacob</td>
70
      <td>Thornton</td>
71
      <td>@fat</td>
72
    </tr>
73
    <tr>
74
      <th scope="row">3</th>
75
      <td>Larry</td>
76
      <td>the Bird</td>
77
      <td>@twitter</td>
78
    </tr>
79
  </tbody>
80
</table>
81
{{< /example >}}
82
 
83
## Table head options
84
 
85
Similar to tables and dark tables, use the modifier classes `.thead-light` or `.thead-dark` to make `<thead>`s appear light or dark gray.
86
 
87
{{< example >}}
88
<table class="table">
89
  <thead class="thead-dark">
90
    <tr>
91
      <th scope="col">#</th>
92
      <th scope="col">First</th>
93
      <th scope="col">Last</th>
94
      <th scope="col">Handle</th>
95
    </tr>
96
  </thead>
97
  <tbody>
98
    <tr>
99
      <th scope="row">1</th>
100
      <td>Mark</td>
101
      <td>Otto</td>
102
      <td>@mdo</td>
103
    </tr>
104
    <tr>
105
      <th scope="row">2</th>
106
      <td>Jacob</td>
107
      <td>Thornton</td>
108
      <td>@fat</td>
109
    </tr>
110
    <tr>
111
      <th scope="row">3</th>
112
      <td>Larry</td>
113
      <td>the Bird</td>
114
      <td>@twitter</td>
115
    </tr>
116
  </tbody>
117
</table>
118
 
119
<table class="table">
120
  <thead class="thead-light">
121
    <tr>
122
      <th scope="col">#</th>
123
      <th scope="col">First</th>
124
      <th scope="col">Last</th>
125
      <th scope="col">Handle</th>
126
    </tr>
127
  </thead>
128
  <tbody>
129
    <tr>
130
      <th scope="row">1</th>
131
      <td>Mark</td>
132
      <td>Otto</td>
133
      <td>@mdo</td>
134
    </tr>
135
    <tr>
136
      <th scope="row">2</th>
137
      <td>Jacob</td>
138
      <td>Thornton</td>
139
      <td>@fat</td>
140
    </tr>
141
    <tr>
142
      <th scope="row">3</th>
143
      <td>Larry</td>
144
      <td>the Bird</td>
145
      <td>@twitter</td>
146
    </tr>
147
  </tbody>
148
</table>
149
{{< /example >}}
150
 
151
## Striped rows
152
 
153
Use `.table-striped` to add zebra-striping to any table row within the `<tbody>`.
154
 
155
{{< example >}}
156
<table class="table table-striped">
157
  <thead>
158
    <tr>
159
      <th scope="col">#</th>
160
      <th scope="col">First</th>
161
      <th scope="col">Last</th>
162
      <th scope="col">Handle</th>
163
    </tr>
164
  </thead>
165
  <tbody>
166
    <tr>
167
      <th scope="row">1</th>
168
      <td>Mark</td>
169
      <td>Otto</td>
170
      <td>@mdo</td>
171
    </tr>
172
    <tr>
173
      <th scope="row">2</th>
174
      <td>Jacob</td>
175
      <td>Thornton</td>
176
      <td>@fat</td>
177
    </tr>
178
    <tr>
179
      <th scope="row">3</th>
180
      <td>Larry</td>
181
      <td>the Bird</td>
182
      <td>@twitter</td>
183
    </tr>
184
  </tbody>
185
</table>
186
{{< /example >}}
187
 
188
{{< example >}}
189
<table class="table table-striped table-dark">
190
  <thead>
191
    <tr>
192
      <th scope="col">#</th>
193
      <th scope="col">First</th>
194
      <th scope="col">Last</th>
195
      <th scope="col">Handle</th>
196
    </tr>
197
  </thead>
198
  <tbody>
199
    <tr>
200
      <th scope="row">1</th>
201
      <td>Mark</td>
202
      <td>Otto</td>
203
      <td>@mdo</td>
204
    </tr>
205
    <tr>
206
      <th scope="row">2</th>
207
      <td>Jacob</td>
208
      <td>Thornton</td>
209
      <td>@fat</td>
210
    </tr>
211
    <tr>
212
      <th scope="row">3</th>
213
      <td>Larry</td>
214
      <td>the Bird</td>
215
      <td>@twitter</td>
216
    </tr>
217
  </tbody>
218
</table>
219
{{< /example >}}
220
 
221
## Bordered table
222
 
223
Add `.table-bordered` for borders on all sides of the table and cells.
224
 
225
{{< example >}}
226
<table class="table table-bordered">
227
  <thead>
228
    <tr>
229
      <th scope="col">#</th>
230
      <th scope="col">First</th>
231
      <th scope="col">Last</th>
232
      <th scope="col">Handle</th>
233
    </tr>
234
  </thead>
235
  <tbody>
236
    <tr>
237
      <th scope="row">1</th>
238
      <td>Mark</td>
239
      <td>Otto</td>
240
      <td>@mdo</td>
241
    </tr>
242
    <tr>
243
      <th scope="row">2</th>
244
      <td>Jacob</td>
245
      <td>Thornton</td>
246
      <td>@fat</td>
247
    </tr>
248
    <tr>
249
      <th scope="row">3</th>
250
      <td colspan="2">Larry the Bird</td>
251
      <td>@twitter</td>
252
    </tr>
253
  </tbody>
254
</table>
255
{{< /example >}}
256
 
257
{{< example >}}
258
<table class="table table-bordered table-dark">
259
  <thead>
260
    <tr>
261
      <th scope="col">#</th>
262
      <th scope="col">First</th>
263
      <th scope="col">Last</th>
264
      <th scope="col">Handle</th>
265
    </tr>
266
  </thead>
267
  <tbody>
268
    <tr>
269
      <th scope="row">1</th>
270
      <td>Mark</td>
271
      <td>Otto</td>
272
      <td>@mdo</td>
273
    </tr>
274
    <tr>
275
      <th scope="row">2</th>
276
      <td>Jacob</td>
277
      <td>Thornton</td>
278
      <td>@fat</td>
279
    </tr>
280
    <tr>
281
      <th scope="row">3</th>
282
      <td colspan="2">Larry the Bird</td>
283
      <td>@twitter</td>
284
    </tr>
285
  </tbody>
286
</table>
287
{{< /example >}}
288
 
289
## Borderless table
290
 
291
Add `.table-borderless` for a table without borders.
292
 
293
{{< example >}}
294
<table class="table table-borderless">
295
  <thead>
296
    <tr>
297
      <th scope="col">#</th>
298
      <th scope="col">First</th>
299
      <th scope="col">Last</th>
300
      <th scope="col">Handle</th>
301
    </tr>
302
  </thead>
303
  <tbody>
304
    <tr>
305
      <th scope="row">1</th>
306
      <td>Mark</td>
307
      <td>Otto</td>
308
      <td>@mdo</td>
309
    </tr>
310
    <tr>
311
      <th scope="row">2</th>
312
      <td>Jacob</td>
313
      <td>Thornton</td>
314
      <td>@fat</td>
315
    </tr>
316
    <tr>
317
      <th scope="row">3</th>
318
      <td colspan="2">Larry the Bird</td>
319
      <td>@twitter</td>
320
    </tr>
321
  </tbody>
322
</table>
323
{{< /example >}}
324
 
325
`.table-borderless` can also be used on dark tables.
326
 
327
{{< example >}}
328
<table class="table table-borderless table-dark">
329
  <thead>
330
    <tr>
331
      <th scope="col">#</th>
332
      <th scope="col">First</th>
333
      <th scope="col">Last</th>
334
      <th scope="col">Handle</th>
335
    </tr>
336
  </thead>
337
  <tbody>
338
    <tr>
339
      <th scope="row">1</th>
340
      <td>Mark</td>
341
      <td>Otto</td>
342
      <td>@mdo</td>
343
    </tr>
344
    <tr>
345
      <th scope="row">2</th>
346
      <td>Jacob</td>
347
      <td>Thornton</td>
348
      <td>@fat</td>
349
    </tr>
350
    <tr>
351
      <th scope="row">3</th>
352
      <td colspan="2">Larry the Bird</td>
353
      <td>@twitter</td>
354
    </tr>
355
  </tbody>
356
</table>
357
{{< /example >}}
358
 
359
## Hoverable rows
360
 
361
Add `.table-hover` to enable a hover state on table rows within a `<tbody>`.
362
 
363
{{< example >}}
364
<table class="table table-hover">
365
  <thead>
366
    <tr>
367
      <th scope="col">#</th>
368
      <th scope="col">First</th>
369
      <th scope="col">Last</th>
370
      <th scope="col">Handle</th>
371
    </tr>
372
  </thead>
373
  <tbody>
374
    <tr>
375
      <th scope="row">1</th>
376
      <td>Mark</td>
377
      <td>Otto</td>
378
      <td>@mdo</td>
379
    </tr>
380
    <tr>
381
      <th scope="row">2</th>
382
      <td>Jacob</td>
383
      <td>Thornton</td>
384
      <td>@fat</td>
385
    </tr>
386
    <tr>
387
      <th scope="row">3</th>
388
      <td colspan="2">Larry the Bird</td>
389
      <td>@twitter</td>
390
    </tr>
391
  </tbody>
392
</table>
393
{{< /example >}}
394
 
395
{{< example >}}
396
<table class="table table-hover table-dark">
397
  <thead>
398
    <tr>
399
      <th scope="col">#</th>
400
      <th scope="col">First</th>
401
      <th scope="col">Last</th>
402
      <th scope="col">Handle</th>
403
    </tr>
404
  </thead>
405
  <tbody>
406
    <tr>
407
      <th scope="row">1</th>
408
      <td>Mark</td>
409
      <td>Otto</td>
410
      <td>@mdo</td>
411
    </tr>
412
    <tr>
413
      <th scope="row">2</th>
414
      <td>Jacob</td>
415
      <td>Thornton</td>
416
      <td>@fat</td>
417
    </tr>
418
    <tr>
419
      <th scope="row">3</th>
420
      <td colspan="2">Larry the Bird</td>
421
      <td>@twitter</td>
422
    </tr>
423
  </tbody>
424
</table>
425
{{< /example >}}
426
 
427
## Small table
428
 
429
Add `.table-sm` to make tables more compact by cutting cell padding in half.
430
 
431
{{< example >}}
432
<table class="table table-sm">
433
  <thead>
434
    <tr>
435
      <th scope="col">#</th>
436
      <th scope="col">First</th>
437
      <th scope="col">Last</th>
438
      <th scope="col">Handle</th>
439
    </tr>
440
  </thead>
441
  <tbody>
442
    <tr>
443
      <th scope="row">1</th>
444
      <td>Mark</td>
445
      <td>Otto</td>
446
      <td>@mdo</td>
447
    </tr>
448
    <tr>
449
      <th scope="row">2</th>
450
      <td>Jacob</td>
451
      <td>Thornton</td>
452
      <td>@fat</td>
453
    </tr>
454
    <tr>
455
      <th scope="row">3</th>
456
      <td colspan="2">Larry the Bird</td>
457
      <td>@twitter</td>
458
    </tr>
459
  </tbody>
460
</table>
461
{{< /example >}}
462
 
463
{{< example >}}
464
<table class="table table-sm table-dark">
465
  <thead>
466
    <tr>
467
      <th scope="col">#</th>
468
      <th scope="col">First</th>
469
      <th scope="col">Last</th>
470
      <th scope="col">Handle</th>
471
    </tr>
472
  </thead>
473
  <tbody>
474
    <tr>
475
      <th scope="row">1</th>
476
      <td>Mark</td>
477
      <td>Otto</td>
478
      <td>@mdo</td>
479
    </tr>
480
    <tr>
481
      <th scope="row">2</th>
482
      <td>Jacob</td>
483
      <td>Thornton</td>
484
      <td>@fat</td>
485
    </tr>
486
    <tr>
487
      <th scope="row">3</th>
488
      <td colspan="2">Larry the Bird</td>
489
      <td>@twitter</td>
490
    </tr>
491
  </tbody>
492
</table>
493
{{< /example >}}
494
 
495
## Contextual classes
496
 
497
Use contextual classes to color table rows or individual cells.
498
 
499
<div class="bd-example">
500
  <table class="table">
501
    <thead>
502
      <tr>
503
        <th scope="col">Class</th>
504
        <th scope="col">Heading</th>
505
        <th scope="col">Heading</th>
506
      </tr>
507
    </thead>
508
    <tbody>
509
      <tr class="table-active">
510
        <th scope="row">Active</th>
511
        <td>Cell</td>
512
        <td>Cell</td>
513
      </tr>
514
      <tr>
515
        <th scope="row">Default</th>
516
        <td>Cell</td>
517
        <td>Cell</td>
518
      </tr>
519
      {{< table.inline >}}
520
      {{- range (index $.Site.Data "theme-colors") }}
521
        <tr class="table-{{ .name }}">
522
          <th scope="row">{{ .name | title }}</th>
523
          <td>Cell</td>
524
          <td>Cell</td>
525
        </tr>
526
      {{- end -}}
527
      {{< /table.inline >}}
528
    </tbody>
529
  </table>
530
</div>
531
 
532
{{< highlight html >}}
533
<!-- On rows -->
534
<tr class="table-active">...</tr>{{< table.inline >}}
535
{{- range (index $.Site.Data "theme-colors") }}
536
<tr class="table-{{ .name }}">...</tr>
537
{{- end -}}
538
{{< /table.inline >}}
539
 
540
<!-- On cells (`td` or `th`) -->
541
<tr>
542
  <td class="table-active">...</td>{{< table.inline >}}
543
{{- range (index $.Site.Data "theme-colors") }}
544
  <td class="table-{{ .name }}">...</td>
545
{{- end -}}
546
{{< /table.inline >}}
547
</tr>
548
{{< /highlight >}}
549
 
550
Regular table background variants are not available with the dark table, however, you may use [text or background utilities]({{< docsref "/utilities/colors" >}}) to achieve similar styles.
551
 
552
<div class="bd-example">
553
  <table class="table table-dark">
554
    <thead>
555
      <tr>
556
        <th scope="col">#</th>
557
        <th scope="col">Heading</th>
558
        <th scope="col">Heading</th>
559
      </tr>
560
    </thead>
561
    <tbody>
562
      <tr class="bg-primary">
563
        <th scope="row">1</th>
564
        <td>Cell</td>
565
        <td>Cell</td>
566
      </tr>
567
      <tr>
568
        <th scope="row">2</th>
569
        <td>Cell</td>
570
        <td>Cell</td>
571
      </tr>
572
      <tr class="bg-success">
573
        <th scope="row">3</th>
574
        <td>Cell</td>
575
        <td>Cell</td>
576
      </tr>
577
      <tr>
578
        <th scope="row">4</th>
579
        <td>Cell</td>
580
        <td>Cell</td>
581
      </tr>
582
      <tr class="bg-info">
583
        <th scope="row">5</th>
584
        <td>Cell</td>
585
        <td>Cell</td>
586
      </tr>
587
      <tr>
588
        <th scope="row">6</th>
589
        <td>Cell</td>
590
        <td>Cell</td>
591
      </tr>
592
      <tr class="bg-warning">
593
        <th scope="row">7</th>
594
        <td>Cell</td>
595
        <td>Cell</td>
596
      </tr>
597
      <tr>
598
        <th scope="row">8</th>
599
        <td>Cell</td>
600
        <td>Cell</td>
601
      </tr>
602
      <tr class="bg-danger">
603
        <th scope="row">9</th>
604
        <td>Cell</td>
605
        <td>Cell</td>
606
      </tr>
607
    </tbody>
608
  </table>
609
</div>
610
 
611
```html
612
<!-- On rows -->
613
<tr class="bg-primary">...</tr>
614
<tr class="bg-success">...</tr>
615
<tr class="bg-warning">...</tr>
616
<tr class="bg-danger">...</tr>
617
<tr class="bg-info">...</tr>
618
 
619
<!-- On cells (`td` or `th`) -->
620
<tr>
621
  <td class="bg-primary">...</td>
622
  <td class="bg-success">...</td>
623
  <td class="bg-warning">...</td>
624
  <td class="bg-danger">...</td>
625
  <td class="bg-info">...</td>
626
</tr>
627
```
628
 
629
{{< callout warning >}}
630
{{< partial "callout-warning-color-assistive-technologies.md" >}}
631
{{< /callout >}}
632
 
633
Create responsive tables by wrapping any `.table` with `.table-responsive{-sm|-md|-lg|-xl}`, making the table scroll horizontally at each `max-width` breakpoint of up to (but not including) 576px, 768px, 992px, and 1120px, respectively.
634
 
635
{{< callout info >}}
636
{{< partial "callout-info-mediaqueries-breakpoints.md" >}}
637
{{< /callout >}}
638
 
639
## Captions
640
 
641
A `<caption>` functions like a heading for a table. It helps users with screen readers to find a table and understand what it's about and decide if they want to read it.
642
 
643
{{< example >}}
644
<table class="table">
645
  <caption>List of users</caption>
646
  <thead>
647
    <tr>
648
      <th scope="col">#</th>
649
      <th scope="col">First</th>
650
      <th scope="col">Last</th>
651
      <th scope="col">Handle</th>
652
    </tr>
653
  </thead>
654
  <tbody>
655
    <tr>
656
      <th scope="row">1</th>
657
      <td>Mark</td>
658
      <td>Otto</td>
659
      <td>@mdo</td>
660
    </tr>
661
    <tr>
662
      <th scope="row">2</th>
663
      <td>Jacob</td>
664
      <td>Thornton</td>
665
      <td>@fat</td>
666
    </tr>
667
    <tr>
668
      <th scope="row">3</th>
669
      <td>Larry</td>
670
      <td>the Bird</td>
671
      <td>@twitter</td>
672
    </tr>
673
  </tbody>
674
</table>
675
{{< /example >}}
676
 
677
## Responsive tables
678
 
679
Responsive tables allow tables to be scrolled horizontally with ease. Make any table responsive across all viewports by wrapping a `.table` with `.table-responsive`. Or, pick a maximum breakpoint with which to have a responsive table up to by using `.table-responsive{-sm|-md|-lg|-xl}`.
680
 
681
{{< callout warning >}}
682
##### Vertical clipping/truncation
683
 
684
Responsive tables make use of `overflow-y: hidden`, which clips off any content that goes beyond the bottom or top edges of the table. In particular, this can clip off dropdown menus and other third-party widgets.
685
{{< /callout >}}
686
 
687
### Always responsive
688
 
689
Across every breakpoint, use `.table-responsive` for horizontally scrolling tables.
690
 
691
<div class="bd-example">
692
  <div class="table-responsive">
693
    <table class="table">
694
      <thead>
695
        <tr>
696
          <th scope="col">#</th>
697
          <th scope="col">Heading</th>
698
          <th scope="col">Heading</th>
699
          <th scope="col">Heading</th>
700
          <th scope="col">Heading</th>
701
          <th scope="col">Heading</th>
702
          <th scope="col">Heading</th>
703
          <th scope="col">Heading</th>
704
          <th scope="col">Heading</th>
705
          <th scope="col">Heading</th>
706
        </tr>
707
      </thead>
708
      <tbody>
709
        <tr>
710
          <th scope="row">1</th>
711
          <td>Cell</td>
712
          <td>Cell</td>
713
          <td>Cell</td>
714
          <td>Cell</td>
715
          <td>Cell</td>
716
          <td>Cell</td>
717
          <td>Cell</td>
718
          <td>Cell</td>
719
          <td>Cell</td>
720
        </tr>
721
        <tr>
722
          <th scope="row">2</th>
723
          <td>Cell</td>
724
          <td>Cell</td>
725
          <td>Cell</td>
726
          <td>Cell</td>
727
          <td>Cell</td>
728
          <td>Cell</td>
729
          <td>Cell</td>
730
          <td>Cell</td>
731
          <td>Cell</td>
732
        </tr>
733
        <tr>
734
          <th scope="row">3</th>
735
          <td>Cell</td>
736
          <td>Cell</td>
737
          <td>Cell</td>
738
          <td>Cell</td>
739
          <td>Cell</td>
740
          <td>Cell</td>
741
          <td>Cell</td>
742
          <td>Cell</td>
743
          <td>Cell</td>
744
        </tr>
745
      </tbody>
746
    </table>
747
  </div>
748
</div>
749
 
750
```html
751
<div class="table-responsive">
752
  <table class="table">
753
    ...
754
  </table>
755
</div>
756
```
757
 
758
### Breakpoint specific
759
 
760
Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.
761
 
762
**These tables may appear broken until their responsive styles apply at specific viewport widths.**
763
 
764
{{< tables.inline >}}
765
{{ range $.Site.Data.breakpoints }}
766
{{ if not (eq .breakpoint "xs") }}
767
<div class="bd-example">
768
<div class="table-responsive{{ .abbr }}">
769
  <table class="table">
770
    <thead>
771
      <tr>
772
        <th scope="col">#</th>
773
        <th scope="col">Heading</th>
774
        <th scope="col">Heading</th>
775
        <th scope="col">Heading</th>
776
        <th scope="col">Heading</th>
777
        <th scope="col">Heading</th>
778
        <th scope="col">Heading</th>
779
        <th scope="col">Heading</th>
780
        <th scope="col">Heading</th>
781
      </tr>
782
    </thead>
783
    <tbody>
784
      <tr>
785
        <th scope="row">1</th>
786
        <td>Cell</td>
787
        <td>Cell</td>
788
        <td>Cell</td>
789
        <td>Cell</td>
790
        <td>Cell</td>
791
        <td>Cell</td>
792
        <td>Cell</td>
793
        <td>Cell</td>
794
      </tr>
795
      <tr>
796
        <th scope="row">2</th>
797
        <td>Cell</td>
798
        <td>Cell</td>
799
        <td>Cell</td>
800
        <td>Cell</td>
801
        <td>Cell</td>
802
        <td>Cell</td>
803
        <td>Cell</td>
804
        <td>Cell</td>
805
      </tr>
806
      <tr>
807
        <th scope="row">3</th>
808
        <td>Cell</td>
809
        <td>Cell</td>
810
        <td>Cell</td>
811
        <td>Cell</td>
812
        <td>Cell</td>
813
        <td>Cell</td>
814
        <td>Cell</td>
815
        <td>Cell</td>
816
      </tr>
817
    </tbody>
818
  </table>
819
</div>
820
</div>
821
{{ end -}}
822
{{- end -}}
823
{{< /tables.inline >}}
824
 
825
{{< highlight html >}}
826
{{< tables.inline >}}
827
{{- range $.Site.Data.breakpoints -}}
828
{{- if not (eq .breakpoint "xs") }}
829
<div class="table-responsive{{ .abbr }}">
830
  <table class="table">
831
    ...
832
  </table>
833
</div>
834
{{ end -}}
835
{{- end -}}
836
{{< /tables.inline >}}
837
{{< /highlight >}}