Resize your blog images on blog theme change with CSS

by Kishore on October 15, 2009

If you want to change your blog theme and the post width is reduced in the new theme, you may have a problem with previous posts. For example you have your old theme with full width image of 600px and in your new theme, your post entry width is just 500px, then your old images will jump out of the post area. Its practically very difficult to edit all the images and get the sizes change.

countdown_film

This simple CSS styling will sort out your issue

.entry img{ max-width:480px; height:auto; }

entry is the class name of the post content where image is displayed

  1. Fusion Theme – A perfect theme for personal blog : If you are looking for free...
  2. Redesigned my blog with a new theme : Screenshot of my blog - New...
  3. Journalist Theme for WordPress Blog – A simple clean theme : I came across a very simple...
  4. Professional Theme for your blog – A must : If you are running a professional...
  5. Corpvox WordPress Theme Released :   Here is an excellent free...