Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Responsive Images Issue

Featured Replies

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

 

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?

  • 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 by AndyDesigns

How do fixed resizes fit with your topic title of responsive images?

 

I use max-width or % in a media query.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.