Transparent custom corners and borders
- 0
- Add a Comment
Cool beans! Now it is easy to learn to do some really cool stuff with CSS and Javascript. While this may not be news to some of the readers out there, it is still pretty cool none the less.
Have you ever wanted to make a resizable box with rounded (or any shape) corners, custom borders, and a transparent shadow? Did you also want to do that without cluttering your markup with a bunch of non-semantic div elements? Now you can.
In June last year I wrote about a way of creating a Flexible box with custom corners and borders. While that method works, it needs some extra markup and has a few other limitations. This new technique uses no extra markup, allows the use of transparent images for the corners and borders, and has no restrictions on the background colour and margins of the elements within the main container. Skip right ahead and take a look at the final example if you can’t wait. [Read the rest]
