.png files are not needed. Just use CSS3 pie: http://css3pie.com/
Get rid of the proprietary IE filter and use (heh, proprietary) -pie-background:linear-gradient(values) instead.
Works harmoniously with individually rounded corners: border-radius: 0 5px 5px 5px
In this case, the upper left corner will not have a border radius, and the remaining corners (clockwise) will have a value of 5 pixels each.
Then use behavior:url(path_to/pie.htc); in the same style.
Remember also that the_to path refers to the document in question, not the CSS file that calls it. Be sure to check if it is working right off the bat.
I have tested this many times and it works like a charm.
Additional Information:
If sometimes your style appears and disappears, try specifying your element a position:relative and the specified z-index . How CSS3 PIE works, it plays with a z-index and can cause your stylized gradients (and rounded corners, etc.) to appear under the background if not specified, especially if you use negative margins or something strange.
Ron ferraro
source share