How do I create borders from images in CSS/HTML without using CSS3?
I have three border tiles: left, right, bottom. The should show up (repeat-x/y) to the left, to the right and to the bottom of my content container.
I tried to build div containers around my content container, but I could’nt figure out how to set the properties…
Is this even the best way?
Use the following HTML structure: ( explanation below )
And the following CSS:
Basically what you do here is the following:
This jsFiddle illustrates what I’m explaining here, using background colors instead of images.
You can see the borders overlap at the corners, you could fix this by also creating extra images that are positioned in the corners.