Use the border-image CSS3 property to create some new and impacting borders.
The first thing to do is create your basic border, this will be filled by your border images or as a fallback for browsers not supporting border-image.
To apply the border-image, we use the CSS
-webkit-border-image: url(borderfile.png) A B type;
- A = slice height
- B = slice width
- type = whether the border is repeated, rounded or stretched (repeat / round / stretch)
Using the border-image 'round', our image will be repeated, scaling/rounding to the height, width and border-width of it's containing layer.
This pane has been created using the following image and the following CSS 3
Alternatively, we can stretch or repeat the side borders to the length and height of the containing layer - this works best in solid / gradient images.
This pane has been created using the following image and the following CSS 3