On 4/16/06, Trey Copeland <[EMAIL PROTECTED]> wrote:
> So my mainlogo.jpg should be displayed using <img> tags instead of the
> background image?
>
> I understand this and it would be easier just to use the <img> tag, but
> I thought I was supposed
> to stay away from that when doing a pure CSS layout.

This is just a misunderstanding that I think started with the CSS Zen
Garden. The ZG doesn't let you change the markup, so designers use
background images instead, even though some of these background images
should be implemented as <img> tags since they represent textual
content. Some people got to thinking CSS should replace <img> tags,
but that's not the case.

They are definitely reasons why one might use background images for
logos. For example, if you want to remove your logo and just show
plain text in the print version, then you use plain text for your
header and replace it with a background image in the CSS... but there
are ways to do this with an inline image too. Read up on image
replacement (I think the CSS-discuss wiki has a section on it) to
learn about all these techniques and the accessibility issues they
solve and/or create.

In short, you just have to look at what you are doing and decide
whether or not it is actually a part of the document. If it is, then
you should most likely use the <img> tag. Otherwise you should most
likely make it a background.

--
--
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to