We can make nice boxes with rounded corners with css. The box will expand to fit the content inside.
In your image program (like Photoshop or Gimp), make images for all the four corners, and the lines.
In your html page, make a box using the div classes that you see when you "view source" of this page.
In your css, make the styles, as you see in the css in the head when you "view source" of this page.
See the links below for the deep explanations.
All content not copyright by anyone else is
copyright © 2003–2007 James Walker.
License for use is the GNU Free Documentation License.
Find it:
here in the
License directory
or
at the Free Software Foundation,
www.fsf.org