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

Featured Replies

What techniques do you use to create responsive images, I'm in the process of it currently and so far it looks like I'll need the following widths; 320,480,700,800, what if I'm missing some widths, is there a sure fire method ?

Please tell me you are not planning on creating images for all those sizes.

 

Plus 'widths' I assume you mean your media queries, in the which would be determined by your design, not devices.

Please tell me you are not planning on creating images for all those sizes.

 

Plus 'widths' I assume you mean your media queries, in the which would be determined by your design, not devices.

 

I think he means responsive images using the picture element. This is kind of the future although I think that many images is overkill. I tend to go with two or three. It's a sensible thing to do, why make somebody download a 2000px banner then their viewport is only 320px wide.. Page speed is king and images are often the biggest bottleneck in speed. Responsive images are a good thing. Don't need media querys, the picture element attributes allows the browser to decide which image is best to serve.

There's some limited browser support but there are some polyfills around to get support down to IE9.

 

By the way it would be insanity to be manually creating all these images. If you're using a CMS that could auto generate the smaller images, or you can use a build to plugin for Grunt or Gulp to automate this.

 

Good screencast on the whole subject: https://css-tricks.com/video-screencasts/133-figuring-responsive-images/

Edited by rbrtsmith

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.