Template

ResponsiveTable

From CNAC

This template wraps a table in an auto overflow-x axis div to allow wide tables to be scrolled on mobile, tablet and desktop devices. The following is the code used to insert the div container.

{{#switch: {{{1|}}}
 | start = <div style="overflow-x:auto;margin-bottom:1rem;">
 | end = </div>
 | {{-}}Use start or end as a parameter, <tt>{{ResponsiveTable|start}} or {{ResponsiveTable|end}}</tt>.{{-}}
}}

To use the template use start or end as the 1st parameter at the beginning and the end of a table. {{ResponsiveTable|start}} or {{ResponsiveTable|end}}