/* +------------------------------------------------------------------+ | Green-Beast.com | | CSS: Smart Corners | | Cascading Style Sheet | | Copyright Aug 2006 | | Use with attribution by visible link please! | | Attribute to: Mike Cherim | +------------------------------------------------------------------+ */ /* here's the box... the image is the upper-left corner */ #csc { background : #669900 url(images/csc_tl.png) no-repeat; width : 20em; height : auto; position : relative; padding : 30px 40px; } /* these are the other three spans. classes were used to allow multiuse on a page */ .tr, .bl, .br { position : absolute; width : 39px; height : 39px; /* corner images are 40x40 */ display : block; margin-bottom : -1px; /* this is for IE */ } /* change position and image: top-right */ .tr { background : transparent url(images/csc_tr.png) no-repeat; top : 0; right : 0; } /* change position and image: bottom-left */ .bl { background : transparent url(images/csc_bl.png) no-repeat; bottom : 0; left : 0; } /* change position and image: bottom-right */ .br { background : transparent url(images/csc_br.png) no-repeat; right : 0; bottom : 0; } /* End Styles */