UNPKG

@picocss/pico

Version:

Minimal CSS Framework for semantic HTML

96 lines (88 loc) 2.83 kB
<!doctype html> <html lang="en"> <head> ${require('./_head.html') title="Horizontal scroller" description="&lt;figure&gt; acts as a container to make any content scrollable horizontally." canonical="scroller.html" } </head> <body> ${require('./_nav.html')} <main class="container" id="docs"> ${require('./_sidebar.html') active="scroller-link"} <div role="document"> <section id="scroller"> <hgroup> <h1>Horizontal scroller</h1> <h2><code>&lt;<b>figure</b>&gt;</code> acts as a container to make any content scrollable horizontally.</h2> </hgroup> <p>Useful to have responsive <code>&lt;<b>table</b>&gt;</code></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> <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> <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> <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> <td>Cell</td> <td>Cell</td> <td>Cell</td> <td>Cell</td> </tr> </tbody> </table> </figure> <pre><code>&lt;<b>figure</b>&gt; &lt;<b>table</b>&gt;&lt;/<b>table</b>&gt; &lt;/<b>figure</b>&gt;</code></pre> </section> ${require('./_footer.html')} </div> </main> <script src="js/commons.min.js"></script> </body> </html>