I've been looking into skinning the YUI menu widget.
Using Firefox with the Firebug plugin installed, I have surmised that the DIV tag containing my menu has its background set by this CSS descriptor somewhere deep in the YUI hierarchy:
.yui-skin-sam .yuimenubar {
background:transparent url(../../../../assets/skins/sam/sprite.png) repeat-x scroll 0pt;
border:1px solid #808080;
font-size:93%;
line-height:2;
}
The referenced PNG file has whole bunc of different images inside it. I have attached this file. HOW ON EARTH does that work?? The background descriptor looks pretty traditional but somehow YUI is specifying that a particular region within this file is to be used for display. AFAIK, PNG files are just image files and contain no regions or anchors of any sort.
Any help would be much appreciated.