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.

Sizing images & media queries

Featured Replies

Hi folks, I'm having a conceptual problem here.

 

I've heard some feedback on my website (home page) that my images aren't sized properly (they're too big) and it's affecting page load.

 

I'm using media queries, so the images are bigger or smaller depending on screen size.

 

How do I size them properly?

 

Thank you!

 

Edit: I'm just talking about the photos on the home page, not the logo/illustration in the header.

You need to optimise your images, bunnybite1.jpg is 141kb is size, I ran that through my optimiser and got it down to 40kb at 90% quality which is a big saving.

 

Optimise all the photos and you should be able to halve total image file size and download time.

Responsive CSS:

 

 

.image_css {
width:100%;
height:auto;
}
 
  • Author

You need to optimise your images [...]. Optimise all the photos and you should be able to halve total image file size and download time.

 

Thank you for the suggestion! What is an optimiser, and what does it do?

 

 

Responsive CSS:

.image_css {

width:100%;

height:auto;

}

 

Thank you! But that's basically what I've done. I'm wondering what size should the images be? (Not what size should they render on the browser, but what size should they be? Right now they're 300x300px, is too big.)

Thank you for the suggestion! What is an optimiser, and what does it do?

BlueDreamer is talking about image compression. It can be done when you export your images from PS or Gimp.

Take a look at this thread for details

http://www.webdesignerforum.co.uk/topic/70610-how-to-reduce-image-size-as-much-as-possible/

There's a whole load of different ways to make your images responsive and only load what specific images you need depending on screen size, but unfortunately there isn't a 'perfect' way to do it - one of my gripes with RWD. Try looking at this site, it seems to tackle the problem quite well.

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.