Skip to content

Instantly share code, notes, and snippets.

@vermilion1
Created November 21, 2013 15:38
Show Gist options
  • Save vermilion1/7583811 to your computer and use it in GitHub Desktop.
Save vermilion1/7583811 to your computer and use it in GitHub Desktop.
Print image
@page {
size: auto;
margin: 0;
}
@media screen, print {
html,
body {
height: 100%;
}
body {
border: 0;
background: #fff;
margin: 0;
padding: 0;
line-height: 0;
}
img {
border: 0;
max-width: 100%;
max-height: 100%;
margin: 0;
display: block;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment