Skip to content

Instantly share code, notes, and snippets.

@vikamirror
Created September 3, 2017 10:51
Show Gist options
  • Select an option

  • Save vikamirror/19acf17d73a4b5b786cfe81782f17e12 to your computer and use it in GitHub Desktop.

Select an option

Save vikamirror/19acf17d73a4b5b786cfe81782f17e12 to your computer and use it in GitHub Desktop.

Revisions

  1. vikamirror created this gist Sep 3, 2017.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    .imgbox .image{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: 100%;
    max-height: 100%;
    }