Last active
September 24, 2018 20:09
-
-
Save oliverdoetsch/11147948 to your computer and use it in GitHub Desktop.
automatically resize blogger images to fit full blog post area
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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
Hello, thanks!
It does its job perfectly but I get a "Whoops, That's an Error". How can I fix that