I am trying to make resizable sidebar with custom border using .png.
I have a sample of each side of border and corners, but I don’t know how to make that my .png repeat horizontally on both sides and so vertically.
I am trying to make resizable sidebar with custom border using .png. I have
Share
First, I am assuming that you want the border to be flexible.
For CSS3 (IE9 and other modern browsers) you can use multiple backgrounds (for example, see http://jsfiddle.net/RCHtK/ ). Put a class on a
div(likefancyBorder) and something like this CSS:For earlier IE browsers see this example: http://jsfiddle.net/RCHtK/10/. This is tested in IE7 and 8 (should work in IE6 I believe). The code could be minimized with creative use of pseudo elements if you only wanted to support IE8. As you can see, a large number of non-semantic
divelements are needed to do it. The relevant code is here:HTML
CSS