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?