Gripe 802: Background Images

By Oli on Monday, 12th February 2007. More information. Comments.

When making a design these days, people are far too keen to plaster background images around without wondering what happens if the site cannot load the image for some reason. This is not normal behaviour but when did anything work as you wanted it 100% of the time? Some common reasons for

When making a design these days, people are far too keen to plaster background images around without wondering what happens if the site cannot load the image for some reason.

This is not normal behaviour but when did anything work as you wanted it 100% of the time? Some common reasons for images not loading are:

  • People actively disable images.
    Lots of people on low-bandwidth connections disable images to save themselves a lot of time.

  • The image server goes down.
    There are two scenarios where this can happen:
    1. You store your images on another server, like I do, and that crashes or restarts.
    2. Your main webserver has crashed and the user is viewing the page from an online cached version. (Digg effect, etc)

Whichever happens to you, you should be prepared. A design should work without the images. Fortunately fixing a site that doesn't work without images is quite easy.

Specifying background colours will fix most layout issues. Take this example from Not Too Geeky. The top half shows the normal display and the bottom half shows the design with images disabled (and the text highlighted so you can see it!).

Bad backgrounds.

I'm not picking Tyme so much because this is such a prevalent problem but if she set a background colour to both those sections which were approximate to that of the image, people would be able to read them without needing to highlight the text.

Setting alt tags to images will work best for places where you have an image that means something. Eg if you have a picture of you on holiday eating a melon, set the alt to "Me eating melon on holiday". That way when the image doesn't load, people will still be able to see the alt text.

I know I'm not perfect. If you disable images on this site, you'll notice that there's no meaningful alternative text for the logo and there are some place that would really benefit from a good background.

Grav

Written by Oli on Monday, 12 February 2007. Tagged with accessibility, webdev, <rant>. Read 2843 times. If you liked it, please give it a digg.

#1 /* 2 years, 11 months ago */
Bah, forgot my login creds again!

But yes, I agree with you that background images can be a pain and in the industry it's common practice to set a background colour on the region for the very reason you specify. I do believe that Seopher.com is 100% fine without images ^^

Don't just sit there like a lemon! Reply!

Got something to say? Now's the time to share it with the author and everybody else that reads this posting! Lemons need not apply.

edtBOX - xHTML: yes - bbcode:no
Home | Advertise | About | Contact | Legal © Oli Warner 2001—2007 Proud 9rules member