
Originally Posted by
deathshadow60
That one is the least code -- and the degradation when background-size is unavailable is entirely acceptable since the only thing "messed up" on older browsers is that the image doesn't scale.
Sometimes the simplest solution is best.
I did goof on that one though -- I forgot to add -moz and -webkit versions of the CSS3 property, so it's not working in FF or Safari/Webkit since they don't use the 'real' one yet. Works great in Opera and IE9 though.
You should add:
-moz-background-size:100% 100%;
-webkit-background-size:100% 100%;
to .borderStretch to get those working. (though it appears the latest versions of Saffy and chrome do in fact support it 'regular' -- leaving FF the odd man out... oh wait, 5 supports it, 4 and lower doesn't... but adding the above fixes older versions of each so might as well toss it in.
Bookmarks