Skip to content

Instantly share code, notes, and snippets.

@brandonb927
Created August 29, 2016 17:52
Show Gist options
  • Save brandonb927/e518305ab29adc8b17e0056215826f36 to your computer and use it in GitHub Desktop.
Save brandonb927/e518305ab29adc8b17e0056215826f36 to your computer and use it in GitHub Desktop.

Revisions

  1. Brandon Brown created this gist Aug 29, 2016.
    6 changes: 6 additions & 0 deletions hull-height-square.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    .elem {
    width: 100vmin;
    height: 100vmin;
    margin-top: calc((100vh - 100vmin)/2);
    margin-left: calc((100vw - 100vmin)/2);
    }