Auto resize images to fit blog post area





There is an easy way to do that without making your caption act in a weird way, this trick was mentioned here

.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;
}

Comments

Popular posts from this blog

How Blogger images & Google Photos connected ?

ROTATE/FILTER/STYLE Google Photos & Blogger Images

Bp.blogspot.com is it a scam ? Why I can't Access it ?