Comment by matt.smillie:

An alternate approach to background images is not to use `...@sprite`s at all,  
but defining them as DataResource and using `...@url` replacement, e.g.:
{{{
class SomeBundle extends ClientBundle {
   @Source(/some/tiling/background)
   DataResource aTile();
}

--- css ---
@url tileName aTile;
.tiledElement {
   background: tileName repeat-x 0 0;
}
}}}

Main advantage seems to be that you don't have to override/work-around the  
width/height generated by `...@sprite` rules.


For more information:
http://code.google.com/p/google-web-toolkit/wiki/CssResource

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to