Skip to content

Instantly share code, notes, and snippets.

@88880
Forked from oliverdoetsch/resizeImage.css
Created September 24, 2018 20:08
Show Gist options
  • Save 88880/3f6279dd6e888ebb8aeabad294f88d4c to your computer and use it in GitHub Desktop.
Save 88880/3f6279dd6e888ebb8aeabad294f88d4c to your computer and use it in GitHub Desktop.
automatically resize blogger images to fit full blog post area
.post-body img {
width: $(content.width);
height: auto;
margin-left: -1em;
padding: 0;
border: none;
max-width: 100%;
}
.post-body .tr-caption-container {
padding: 0;
}
.post-body .tr-caption-container img {
padding: 0;
display: block;
width: $(content.width);
height: auto;
margin-left: 0;
max-width: 100%;
background: transparent;
border: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment