<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
On Fri, 2010-05-21 at 10:12 -0700, David Weitzman wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
There are various approaches to using image sprites with HTML and CSS,
but at the end of the day they are all essentially hacks. A solution
that would be simpler than any existing approach would be to introduce
new attributes for <img> to specify x and y offsets and clipping on
images. With that you would get simpler markup for sprites and better
accessibility.

One downside of this approach is that with background image sprites
you can have a CSS class that abstracts away the name of the sprite
image. With <img> tags you would have to specify the URL and
height/width individually on every sprited image.

Thoughts?

- David
</PRE>
</BLOCKQUOTE>
<BR>
It does seem like a good idea, because it does make sure that the sprites are accessible, which they really aren't at the moment.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Thanks,<BR>
Ash<BR>
<A HREF="http://www.ashleysheridan.co.uk">http://www.ashleysheridan.co.uk</A><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>