Skip to content

Instantly share code, notes, and snippets.

@michaelwhyte
Last active August 29, 2015 14:06
Show Gist options
  • Save michaelwhyte/6236b69048f7cd0afec6 to your computer and use it in GitHub Desktop.
Save michaelwhyte/6236b69048f7cd0afec6 to your computer and use it in GitHub Desktop.
.img-02:-webkit-full-screen img {
display: block;
margin: 0; /* overide pre-existing margin styles */
}
.img-02:-moz-full-screen img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
margin: 0; /* overide pre-existing margin styles */
}
.img-02:-ms-fullscreen img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
margin: 0; /* overide pre-existing margin styles */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment