Skip to content

Instantly share code, notes, and snippets.

@sarachisholm
Last active March 17, 2017 19:31
Show Gist options
  • Select an option

  • Save sarachisholm/a3507dcad41ac2d3c45e19e7de2be186 to your computer and use it in GitHub Desktop.

Select an option

Save sarachisholm/a3507dcad41ac2d3c45e19e7de2be186 to your computer and use it in GitHub Desktop.

Revisions

  1. sarachisholm revised this gist Jan 5, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion content-switching.css
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    /*CSS*/

    @media only screen and (max-width: 500px) {
    table, tr, td {
    display: block; /* table-cell -> block */
  2. sarachisholm created this gist Jan 5, 2017.
    10 changes: 10 additions & 0 deletions content-switching.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    /*CSS*/

    @media only screen and (max-width: 500px) {
    table, tr, td {
    display: block; /* table-cell -> block */
    width: 100%;
    }
    .main-col { display: table-header-group; }
    .sub-col { display: table-footer-group; }
    }