October 16, 201313 yr Hi Guys, I'm using the Twitter Bootstrap Framework for my Wordpress theme. Unfortunately because of the CSS property shown below all my images are very slightly blurred at any resolution (desktop, tablet etc), as soon as I remove the max-width property they become sharper but obviously no longer responsive: .img-responsive { max-width: 100% } I've tried using width: 100% instead but they are still blurred. This seems like quite a basic issue so I must be missing something obvious here. How do I keep them responsive but also crisp? Any advice much appreciated. regards, Andy
October 18, 201313 yr hi, this is weird, cause it should work properly. try to optimize the images in photoshop (file > save for web...), it may help. can you provide some example?
October 18, 201313 yr Author I think i've fixed this issue, it wasnt being caused by the CSS. In Wordpress there are two ways it resizes images, one where it crops the image, one where it resizes them keeping their original aspect ratio. Basically I changed the code from this: $image = aq_resize( $img_url, 750, 500, true ); //resize & crop the image to this: $image = aq_resize( $img_url, 976, 500 ); //resize the image Edited October 18, 201313 yr by AndyDesigns
October 18, 201313 yr How do fixed resizes fit with your topic title of responsive images? I use max-width or % in a media query.
October 18, 201313 yr Author How do fixed resizes fit with your topic title of responsive images? I use max-width or % in a media query. The CSS is still using max-width. The wordpress code just sets the initial size of the image, it will then scale down with the device size.
Create an account or sign in to comment