You are here: Re: <img> or CSS background-image? « HTML « IT news, forums, messages
Re: <img> or CSS background-image?

Posted by Jukka K. Korpela on 10/02/06 08:53

Scripsit JWL:

> Suppose I have a site that requires a horizontal line of four images
> on each page.

Suppose that you gave us the URL. Then we would know what this is really
about and could give a simple, direct answer.

> This is a design thing and doesn't really have much
> bearing on the site's content. The images differ from page to page.

But the site _requires_ the images? So it's presumably unusable by anyone
who uses a text browser, speech browser, Braille device, or otherwise
imageless browsing. Right? I guess not.

The key question is: is it genuine content, or just decoration? Or something
between? Exactly where there?

If content, use <img> with adequate alt attributes. If decoration, use
background image _or_ <img> with alt=""; the choice between these depends on
the circumstances but isn't generally a big issue.

> width: 800px;

Too much width. Broken by design. Remarkably many web sites force horizontal
scrolling just because some dee-ziner decided on wide banner image.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация