Hi guys i am using the css max-width to auto resize the images in wordpress post but the images are not properly autoresized that is only the width is resized and not the height. How can i have a autoresize both of the width and height of the images? .postclass img { max-width: 500px; width: expression(this.width > 500 ? 500: true); }
.postclass img { max-width: 500px; max-height: 500px; width: expression(this.width > 500 ? 500: true); height: expression(this.height > 500 ? 500: true); } Try that.
nah that will make the image look like a monster..lol its called autoresize not max width and max height
Try using: width: auto; height: auto; Edit: http://blog.sachinkraj.com/how-to-resize-images-with-css/