Skip to content

Instantly share code, notes, and snippets.

@oliverdoetsch
Last active September 24, 2018 20:09
Show Gist options
  • Save oliverdoetsch/11147948 to your computer and use it in GitHub Desktop.
Save oliverdoetsch/11147948 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;
}
@88880
Copy link

88880 commented Sep 24, 2018

Hello, thanks!
It does its job perfectly but I get a "Whoops, That's an Error". How can I fix that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment