<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Image Sprites Syntax Request</title>
	<atom:link href="http://www.css3.info/image-sprites-syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.css3.info/image-sprites-syntax/</link>
	<description>All you ever needed to know about CSS3</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:52:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Pixelutely</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-263215</link>
		<dc:creator>Pixelutely</dc:creator>
		<pubDate>Wed, 18 Jan 2012 11:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-263215</guid>
		<description>I can only see this being of use if it will also work alongside other well established properties - position, repeat, etc. What I find so clumsy about using sprites is having to group them by application (e.g. icon, background, etc) because they serve images by type, rather than by relevancy to the page.


 </description>
		<content:encoded><![CDATA[<p>I can only see this being of use if it will also work alongside other well established properties &#8211; position, repeat, etc. What I find so clumsy about using sprites is having to group them by application (e.g. icon, background, etc) because they serve images by type, rather than by relevancy to the page.</p>
<p> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Baker</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-259881</link>
		<dc:creator>Andy Baker</dc:creator>
		<pubDate>Sun, 15 Aug 2010 19:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-259881</guid>
		<description>This is stockholm syndrome of the highest order. 
 
Either fix http or come up with a sensible image format container. </description>
		<content:encoded><![CDATA[<p>This is stockholm syndrome of the highest order.</p>
<p>Either fix http or come up with a sensible image format container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arlo</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257655</link>
		<dc:creator>Arlo</dc:creator>
		<pubDate>Sun, 03 Jan 2010 15:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257655</guid>
		<description>http://www.css3.info/image-sprites-syntax/


I was thinking, why is everybody defining each slice separately? Sprites are most commonly used with icons, which often have the same dimensions. So it would be easier/more elegant to just describe how the images are sliced. If you have an image file with, say, 8 icons horizontally in 4 states vertically, just slice it 8 by 4, and then just reference the slice number or slice position. Obviously, this wouldn&#039;t allow for sprites in different dimensions in a single image file. But, we could reuse rect from css2 clip for that.

I like the @-rule proposed by others, but it isn&#039;t consistent with the css grammar, because it doesn&#039;t take arbitrary rules, but keywords defined by the W3C. So, if we&#039;re gonna go that way, we&#039;ll have to define just one new @-rule. And while we&#039;re busy, a generic one that we could also use for other resources, like audio, would seem better. It could even replace the @font-face rule; it just seems more sensible to have just one flexible @resource rule, instead of one for each resource type like @font-face, @image, etc.

Anyway, I gave it some thought, mixed some propositions, added a twist of my own and came up with the following:

@resource {} /* create a named resource */

slice-image: url(&quot;image.png&quot;); /* which image file to slice */

slice-by-x: n; /* slice the image horizontally in n slices */
slice-by-y: n; /* slice the image vertically in n slices */
slice-by: x y; /* shorthand for slice-by-x and slice-by-y */

slice-x: n; /* which slice to use horizontally */
slice-y: n; /* which slice to use vertically */
slice: x y; /* shorthand for slice-x and slice-y, or */
slice: n; /* use slice n (counting horizontally, then vertically) or */
slice: rect(x, y, width, height); /* to allow for different sprite dimensions */

And of course, the same goes for background-image and list-style-image: background-slice-image, list-style-slice etc. 

In shorthand properties like background and list-style:

slice(&quot;image.png&quot;, rect(x, y, width, height));
slice(res, rect(x, y, width, height));
slice(res, n); /* use sprite n from named resource res or */
slice(res); /* just use the first sprite or */
slice(res, x, y); /* use sprite at x, y */

An example:

a.icon {
  slice-image: url(images/icons.png);
  background-slice-by: 8 4;
}

a.icon:link, a.icon:visited { background-slice-y: 0 }
a.icon:hover { background-slice-y: 1 }
a.icon:active { background-slice-y: 2 }

a.icon#home { background-slice-x: 0 }
a.icon#news { background-slice-x: 1 }
a.icon#about { background-slice-x: 2 }

Another example, using named resources:

@resource {
  resource-name: buttons;
  src: url(image/buttons.png);
  slice-by: 8 4;
}

ul.nav#home { list-style-image: slice(buttons, 0) }
ul.nav#news { list-style-image: slice(buttons, 1) }
ul.nav#about { list-style-image: slice(buttons, 2) }

For backward compatibility, use both url() and slice():

@resource {
  resource-name: backgrounds;
  src: url(images/backgrounds.png);
  slice: rect(0, 0, 10, 10) rect(10, 0, 50, 50); 
}

#header {
  background: red url(&quot;red.png&quot;) repeat slice(backgrounds, 0);
}

#content {
  background: white url(&quot;white.png&quot;) repeat slice(&quot;backgrounds.png&quot;, rect(10, 0, 10, 10));
}

Obviously, we&#039;re trying to save bandwidth and http overhead, so user agents should only use url() as fallback, ie. they should not try to load url() if slice() is successfully loaded.

With named resources, we could also cascade them (slice sprites again). Imagine an image sliced in 4 sprites, one for top, bottom, left and right; and then slice them up again in 1x10 horizontally or 10x1 vertically. Like this:

@resource { resource-name: gradients; src: url(images/gradients.png); slice-by: 4 4 }
@resource { resource-name: topgradients; src: slice(gradients, 1); slice-by: 1 10 }
@resource { resource-name: bottomgradients; src: slice(gradients, 2); slice-by: 1 10 }
@resource { resource-name: leftgradients; src: slice(gradients, 3); slice-by: 10 1 }
@resource { resource-name: rightgradients; src: slice(gradients, 4); slice-by: 10 1 }

Anyway, this solution would create quite a lot of new css properties, but otherwise I think it&#039;s an elegant and flexible solution, it allows for repetition and position, and it&#039;s consistent with css grammar. What do you think, does it make sense?

PS: Sorry for the long post, I was going for the bonus points ;)</description>
		<content:encoded><![CDATA[<p><a href="http://www.css3.info/image-sprites-syntax/" rel="nofollow">http://www.css3.info/image-sprites-syntax/</a></p>
<p>I was thinking, why is everybody defining each slice separately? Sprites are most commonly used with icons, which often have the same dimensions. So it would be easier/more elegant to just describe how the images are sliced. If you have an image file with, say, 8 icons horizontally in 4 states vertically, just slice it 8 by 4, and then just reference the slice number or slice position. Obviously, this wouldn&#8217;t allow for sprites in different dimensions in a single image file. But, we could reuse rect from css2 clip for that.</p>
<p>I like the @-rule proposed by others, but it isn&#8217;t consistent with the css grammar, because it doesn&#8217;t take arbitrary rules, but keywords defined by the W3C. So, if we&#8217;re gonna go that way, we&#8217;ll have to define just one new @-rule. And while we&#8217;re busy, a generic one that we could also use for other resources, like audio, would seem better. It could even replace the @font-face rule; it just seems more sensible to have just one flexible @resource rule, instead of one for each resource type like @font-face, @image, etc.</p>
<p>Anyway, I gave it some thought, mixed some propositions, added a twist of my own and came up with the following:</p>
<p>@resource {} /* create a named resource */</p>
<p>slice-image: url(&#8220;image.png&#8221;); /* which image file to slice */</p>
<p>slice-by-x: n; /* slice the image horizontally in n slices */<br />
slice-by-y: n; /* slice the image vertically in n slices */<br />
slice-by: x y; /* shorthand for slice-by-x and slice-by-y */</p>
<p>slice-x: n; /* which slice to use horizontally */<br />
slice-y: n; /* which slice to use vertically */<br />
slice: x y; /* shorthand for slice-x and slice-y, or */<br />
slice: n; /* use slice n (counting horizontally, then vertically) or */<br />
slice: rect(x, y, width, height); /* to allow for different sprite dimensions */</p>
<p>And of course, the same goes for background-image and list-style-image: background-slice-image, list-style-slice etc. </p>
<p>In shorthand properties like background and list-style:</p>
<p>slice(&#8220;image.png&#8221;, rect(x, y, width, height));<br />
slice(res, rect(x, y, width, height));<br />
slice(res, n); /* use sprite n from named resource res or */<br />
slice(res); /* just use the first sprite or */<br />
slice(res, x, y); /* use sprite at x, y */</p>
<p>An example:</p>
<p>a.icon {<br />
  slice-image: url(images/icons.png);<br />
  background-slice-by: 8 4;<br />
}</p>
<p>a.icon:link, a.icon:visited { background-slice-y: 0 }<br />
a.icon:hover { background-slice-y: 1 }<br />
a.icon:active { background-slice-y: 2 }</p>
<p>a.icon#home { background-slice-x: 0 }<br />
a.icon#news { background-slice-x: 1 }<br />
a.icon#about { background-slice-x: 2 }</p>
<p>Another example, using named resources:</p>
<p>@resource {<br />
  resource-name: buttons;<br />
  src: url(image/buttons.png);<br />
  slice-by: 8 4;<br />
}</p>
<p>ul.nav#home { list-style-image: slice(buttons, 0) }<br />
ul.nav#news { list-style-image: slice(buttons, 1) }<br />
ul.nav#about { list-style-image: slice(buttons, 2) }</p>
<p>For backward compatibility, use both url() and slice():</p>
<p>@resource {<br />
  resource-name: backgrounds;<br />
  src: url(images/backgrounds.png);<br />
  slice: rect(0, 0, 10, 10) rect(10, 0, 50, 50);<br />
}</p>
<p>#header {<br />
  background: red url(&#8220;red.png&#8221;) repeat slice(backgrounds, 0);<br />
}</p>
<p>#content {<br />
  background: white url(&#8220;white.png&#8221;) repeat slice(&#8220;backgrounds.png&#8221;, rect(10, 0, 10, 10));<br />
}</p>
<p>Obviously, we&#8217;re trying to save bandwidth and http overhead, so user agents should only use url() as fallback, ie. they should not try to load url() if slice() is successfully loaded.</p>
<p>With named resources, we could also cascade them (slice sprites again). Imagine an image sliced in 4 sprites, one for top, bottom, left and right; and then slice them up again in 1&#215;10 horizontally or 10&#215;1 vertically. Like this:</p>
<p>@resource { resource-name: gradients; src: url(images/gradients.png); slice-by: 4 4 }<br />
@resource { resource-name: topgradients; src: slice(gradients, 1); slice-by: 1 10 }<br />
@resource { resource-name: bottomgradients; src: slice(gradients, 2); slice-by: 1 10 }<br />
@resource { resource-name: leftgradients; src: slice(gradients, 3); slice-by: 10 1 }<br />
@resource { resource-name: rightgradients; src: slice(gradients, 4); slice-by: 10 1 }</p>
<p>Anyway, this solution would create quite a lot of new css properties, but otherwise I think it&#8217;s an elegant and flexible solution, it allows for repetition and position, and it&#8217;s consistent with css grammar. What do you think, does it make sense?</p>
<p>PS: Sorry for the long post, I was going for the bonus points ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JoeMorgan</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257350</link>
		<dc:creator>JoeMorgan</dc:creator>
		<pubDate>Tue, 01 Dec 2009 21:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257350</guid>
		<description>It&#039;s too bad that new properties can&#039;t be used, because I can see situations where it would be very useful to animate these properties via script, and having a single combined property does not fit with the animation model used by major JavScript libraries.

For example, using jQuery you could simultaneously animate various proprties like &#039;background-slice-x&#039; and &#039;background-slice-y&#039;, but you couldn&#039;t handle the more generic &#039;background-slice&#039; without the library itself being rewritten to accommodate it.</description>
		<content:encoded><![CDATA[<p>It&#8217;s too bad that new properties can&#8217;t be used, because I can see situations where it would be very useful to animate these properties via script, and having a single combined property does not fit with the animation model used by major JavScript libraries.</p>
<p>For example, using jQuery you could simultaneously animate various proprties like &#8216;background-slice-x&#8217; and &#8216;background-slice-y&#8217;, but you couldn&#8217;t handle the more generic &#8216;background-slice&#8217; without the library itself being rewritten to accommodate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luckypouet</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257224</link>
		<dc:creator>Luckypouet</dc:creator>
		<pubDate>Tue, 17 Nov 2009 08:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257224</guid>
		<description>That&#039;s true, perhaps this would be the short syntax :

background: red url(&#039;single.png&#039;) repeat-x left bottom slice(&#039;combined.png&#039;,x, y, w, h);
} 

and this the detailed version :

background-color:red;
background-image:url(&#039;single.png&#039;);
background-repeat:repeat-x;
background-position:left bottom;
background-slice:url(&#039;combined.png&#039;) x  y w h;

or more detailed for the latest element :

background-slice-image:url(&#039;combined.png&#039;);
background-slice-coords:x y w h;</description>
		<content:encoded><![CDATA[<p>That&#8217;s true, perhaps this would be the short syntax :</p>
<p>background: red url(&#8216;single.png&#8217;) repeat-x left bottom slice(&#8216;combined.png&#8217;,x, y, w, h);<br />
} </p>
<p>and this the detailed version :</p>
<p>background-color:red;<br />
background-image:url(&#8216;single.png&#8217;);<br />
background-repeat:repeat-x;<br />
background-position:left bottom;<br />
background-slice:url(&#8216;combined.png&#8217;) x  y w h;</p>
<p>or more detailed for the latest element :</p>
<p>background-slice-image:url(&#8216;combined.png&#8217;);<br />
background-slice-coords:x y w h;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abha</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257216</link>
		<dc:creator>abha</dc:creator>
		<pubDate>Sun, 15 Nov 2009 02:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257216</guid>
		<description> This does seem to be covered by the image-rect property that’s landing in Firefox 3.6, and that syntax seems to work fine.</description>
		<content:encoded><![CDATA[<p> This does seem to be covered by the image-rect property that’s landing in Firefox 3.6, and that syntax seems to work fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Gehrmann</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257069</link>
		<dc:creator>Michael Gehrmann</dc:creator>
		<pubDate>Fri, 23 Oct 2009 09:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257069</guid>
		<description> sorry: there was an error in my second expample it should say: 

.mint a{background-image:url(/img/mint.png)}
.strawberry a{background-image:url(/img/strawberry.png)}

a.icon1{background-slice:slice(0 0 15px 15px)}
a.icon2{background-slice:slice(0 15px 15px 15px)}
a.icon3{background-slice:slice(0 30px 15px 15px)}

-or-

.mint .icon{background-image:url(/img/mint.png)}
.strawberry icon{background-image:url(/img/strawberry.png)}

.icon.icon1{background-slice:slice(0 0 15px 15px)}
.icon.icon2{background-slice:slice(0 15px 15px 15px)}
.icon.icon3{background-slice:slice(0 30px 15px 15px)}</description>
		<content:encoded><![CDATA[<p> sorry: there was an error in my second expample it should say: </p>
<p>.mint a{background-image:url(/img/mint.png)}<br />
.strawberry a{background-image:url(/img/strawberry.png)}</p>
<p>a.icon1{background-slice:slice(0 0 15px 15px)}<br />
a.icon2{background-slice:slice(0 15px 15px 15px)}<br />
a.icon3{background-slice:slice(0 30px 15px 15px)}</p>
<p>-or-</p>
<p>.mint .icon{background-image:url(/img/mint.png)}<br />
.strawberry icon{background-image:url(/img/strawberry.png)}</p>
<p>.icon.icon1{background-slice:slice(0 0 15px 15px)}<br />
.icon.icon2{background-slice:slice(0 15px 15px 15px)}<br />
.icon.icon3{background-slice:slice(0 30px 15px 15px)}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Gehrmann</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257068</link>
		<dc:creator>Michael Gehrmann</dc:creator>
		<pubDate>Fri, 23 Oct 2009 09:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257068</guid>
		<description> But if you combine the URL of the image and the slice into one single property, you end up typing the URL again and again. This gets especiall annoying when you want to combine classes to switch sprite, e.g. if you want to use different themes: 

Example: 
see there two sprites: 
http://www.gehrmann-design.com/img/mint.png
http://www.gehrmann-design.com/img/strawberry.png

now imagine you do a div.mint for the green theme. And a div.strawberry for the pink theme.

with your syntax you would end up typing: 

.mint .icon1{background: slice(&#039;/img/mint.png&#039; 0 0 15px 15px)}
.mint .icon2{background: slice(&#039;/img/mint.png&#039; 0 15px 15px 15px)}
.mint .icon3{background: slice(&#039;/img/mint.png&#039; 0 30px 15px 15px)}

(...) 

.strawberry .icon1{background: slice(&#039;/img/strawberry.png&#039; 0 0 15px 15px)}
.strawberry .icon2{background: slice(&#039;/img/strawberry.png&#039; 0 15px 15px 15px)}
.strawberry .icon3{background: slice(&#039;/img/strawberry.png&#039; 0 30px 15px 15px)}

(...) 

-----------
And you would have to repeat this for every skin you later introduce. 

Seperating the properties for the image and the slice would save you a ton of code: 

.mint {background-image:url(/img/mint.png)}
.strawberry {background-image:url(/img/strawberry.png)}

.icon1{background-slice:slice(0 0 15px 15px)}
.icon2{background-slice:slice(0 15px 15px 15px)}
.icon3{background-slice:slice(0 30px 15px 15px)}

-----
Introducing a new color sceme would simplay be one line of code: 
.blueberry {background-image:url(/img/blueberry.png)}


-----
to keep old browsers happy you could use instead of the simple url() for the background image property a new one like slice-url: 

background: slice-url(/img/blueberry.png) slice(0 30px 15px 15px)</description>
		<content:encoded><![CDATA[<p> But if you combine the URL of the image and the slice into one single property, you end up typing the URL again and again. This gets especiall annoying when you want to combine classes to switch sprite, e.g. if you want to use different themes: </p>
<p>Example:<br />
see there two sprites:<br />
<a href="http://www.gehrmann-design.com/img/mint.png" rel="nofollow">http://www.gehrmann-design.com/img/mint.png</a><br />
<a href="http://www.gehrmann-design.com/img/strawberry.png" rel="nofollow">http://www.gehrmann-design.com/img/strawberry.png</a></p>
<p>now imagine you do a div.mint for the green theme. And a div.strawberry for the pink theme.</p>
<p>with your syntax you would end up typing: </p>
<p>.mint .icon1{background: slice(&#8216;/img/mint.png&#8217; 0 0 15px 15px)}<br />
.mint .icon2{background: slice(&#8216;/img/mint.png&#8217; 0 15px 15px 15px)}<br />
.mint .icon3{background: slice(&#8216;/img/mint.png&#8217; 0 30px 15px 15px)}</p>
<p>(&#8230;) </p>
<p>.strawberry .icon1{background: slice(&#8216;/img/strawberry.png&#8217; 0 0 15px 15px)}<br />
.strawberry .icon2{background: slice(&#8216;/img/strawberry.png&#8217; 0 15px 15px 15px)}<br />
.strawberry .icon3{background: slice(&#8216;/img/strawberry.png&#8217; 0 30px 15px 15px)}</p>
<p>(&#8230;) </p>
<p>&#8212;&#8212;&#8212;&#8211;<br />
And you would have to repeat this for every skin you later introduce. </p>
<p>Seperating the properties for the image and the slice would save you a ton of code: </p>
<p>.mint {background-image:url(/img/mint.png)}<br />
.strawberry {background-image:url(/img/strawberry.png)}</p>
<p>.icon1{background-slice:slice(0 0 15px 15px)}<br />
.icon2{background-slice:slice(0 15px 15px 15px)}<br />
.icon3{background-slice:slice(0 30px 15px 15px)}</p>
<p>&#8212;&#8211;<br />
Introducing a new color sceme would simplay be one line of code:<br />
.blueberry {background-image:url(/img/blueberry.png)}</p>
<p>&#8212;&#8211;<br />
to keep old browsers happy you could use instead of the simple url() for the background image property a new one like slice-url: </p>
<p>background: slice-url(/img/blueberry.png) slice(0 30px 15px 15px)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luckypouet</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257067</link>
		<dc:creator>Luckypouet</dc:creator>
		<pubDate>Fri, 23 Oct 2009 07:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257067</guid>
		<description>I agree with André to, but there&#039;s just one thing that &quot;disturb&quot; me. We need to call a different image for the &quot;sliced version&quot;, instead of that, it seems that we&#039;ll use the old way, one image for one icon....

We can mix André&#039;s proposition (#20) and Matt&#039;s(#16) :

div{
background: red url(&#039;single.png&#039;) repeat-x left bottom slice(&#039;combined.png&#039;,x, y, w, h);
} 

On one hand, modern browsers must give priority to the slice value and ignore url property. And on the other, old browsers will not understand slice and will get the url property only.</description>
		<content:encoded><![CDATA[<p>I agree with André to, but there&#8217;s just one thing that &#8220;disturb&#8221; me. We need to call a different image for the &#8220;sliced version&#8221;, instead of that, it seems that we&#8217;ll use the old way, one image for one icon&#8230;.</p>
<p>We can mix André&#8217;s proposition (#20) and Matt&#8217;s(#16) :</p>
<p>div{<br />
background: red url(&#8216;single.png&#8217;) repeat-x left bottom slice(&#8216;combined.png&#8217;,x, y, w, h);<br />
} </p>
<p>On one hand, modern browsers must give priority to the slice value and ignore url property. And on the other, old browsers will not understand slice and will get the url property only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Gehrmann</title>
		<link>http://www.css3.info/image-sprites-syntax/comment-page-1/#comment-257057</link>
		<dc:creator>Michael Gehrmann</dc:creator>
		<pubDate>Thu, 22 Oct 2009 13:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.css3.info/?p=328#comment-257057</guid>
		<description>I Agree with André Cassal. 
The slice Property should be seperate from the url Propperty. 
This would avoid the need to reenter the URL of the Image again and again, espeacially if you use combine more then one class: 

Example: 
HTML: 
&lt;a / rel=&quot;nofollow&quot;&gt;
&lt;/a&gt;&lt;a / rel=&quot;nofollow&quot;&gt;

&lt;/a&gt;&lt;a / rel=&quot;nofollow&quot;&gt;
&lt;/a&gt;&lt;a / rel=&quot;nofollow&quot;&gt;


CSS: 
.red-icon{background-image: url(/red-sprite.png)}
.blue-icon{background-image: url(/blue-sprite.png)}

.icon1{background-slice(0,0,10px,10px);}
.icon2{background-slice(0,11px,10px,10px)}&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I Agree with André Cassal.<br />
The slice Property should be seperate from the url Propperty.<br />
This would avoid the need to reenter the URL of the Image again and again, espeacially if you use combine more then one class: </p>
<p>Example:<br />
HTML:<br />
<a / rel="nofollow"><br />
</a><a / rel="nofollow"></p>
<p></a><a / rel="nofollow"><br />
</a><a / rel="nofollow"></p>
<p>CSS:<br />
.red-icon{background-image: url(/red-sprite.png)}<br />
.blue-icon{background-image: url(/blue-sprite.png)}</p>
<p>.icon1{background-slice(0,0,10px,10px);}<br />
.icon2{background-slice(0,11px,10px,10px)}</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/


Served from: css3.info @ 2012-02-08 08:43:21 -->
