<h2>Responsive Tables #1: Horizontal Scrolling</h2>

            <th>Type of Food</th>
            <th>Tasty Factor</th>
            <th>Average Price</th>
            <th>Average Rating</th>
            <td>Slice of Pizza</td>
* {
    box-sizing: border-box;
    font-family: "Avenir", "Helvetica", sans-serif;

body {
    background-color: #f9f9f9;

/* Default table styles for this demo */
table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
table tr {
    background: white;
    border-bottom: 1px solid
table th, table td {
    padding: 10px 20px;

/* Simple CSS for scrollable table on mobile */
table {
    min-width: 800px;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.