Resizing Blog Width: Image Problem
So, you decided to enlarge or make your blog smaller. And then this happens:
The image's size overlaps to the blog(main-wrapper) width, you can fix it by editing the post but what if your other posts have the same problem. Changing the image size will be tiring by doing it individually. So to solve this.We need a simple CSS code:
Here's the solution:
1. You should know the size of your blog, to be specific the main-wrapper where your posts are written. You can go to the blog dashboard >Template> Edit Html, Find "main-wrapper" or to Customize> Adjust widths.
You can get the size of your blog posts area by subtracting the entire size(960px) to the right sidebar(310px) which for this, 650px. But you should keep in mind also the padding and the margin. So, it is safe to use 600px as your base image size.
2. Then add this simple CSS code below before ]]></b:skin>
That's it! Any thoughts for this?
The image's size overlaps to the blog(main-wrapper) width, you can fix it by editing the post but what if your other posts have the same problem. Changing the image size will be tiring by doing it individually. So to solve this.We need a simple CSS code:
Here's the solution:
1. You should know the size of your blog, to be specific the main-wrapper where your posts are written. You can go to the blog dashboard >Template> Edit Html, Find "main-wrapper" or to Customize> Adjust widths.
You can get the size of your blog posts area by subtracting the entire size(960px) to the right sidebar(310px) which for this, 650px. But you should keep in mind also the padding and the margin. So, it is safe to use 600px as your base image size.
2. Then add this simple CSS code below before ]]></b:skin>
.post-body img{**size in px, the size of your blog posts area.
max-width: **px
height:auto;
}
That's it! Any thoughts for this?
Comments
Post a Comment
Feel free to ask, suggest and comment regarding this post/blog. You can also contact me through e-mail, just always use the contact page. Thank you for visiting this blog.