To create a CSS3 rounded corner box, simply start with your box element and apply your 4 corner images, separated by commas.
.box {background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif);}
.box {background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif);background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;}
.box {background-image: url(top-left.gif), url(top-right.gif), url(bottom-left.gif), url(bottom-right.gif);background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;background-position: top left, top right, bottom left, bottom right;}

No comments:
Post a Comment