In old school, you can use an HTML 3x3 table with images: fixed-size images for corners, extensible images at the edges, and your content in the middle. See this page for a better description.
Edit: here is a page describing how to do with CSS without images.
source share