This creates a box - you may be able to use it with a table.
HTML Code:
<html>
<head>
<title> ImageMagick / CSS Rounded Rectangle Example</title>
<style type="text/css" >
body
{
margin:0;
padding:0;
font-family: verdana;
}
.box
{
float:left;
margin:25px;
width:320px;
}
.box .tl,.box .tc,.box .tr,
.box .stl,.box .stc,.box .str,
.box .middle .ml,.box .middle .mc,.box .middle .mr,
.box .bl,.box .bc,.box .br
{
margin:0;
padding:0;
float:left;
}
.box .stl,.box .stc,.box .str
{
height:27px;
}
.stl
{
background:transparent url(shaded-border-tl.gif) no-repeat top left;
width:15px;
}
.stc
{
width:284px;
background:transparent url(shaded-border-tc.gif) repeat-x top left;
color:#fff;
}
.str
{
background:transparent url(shaded-border-tr.gif) no-repeat top right;
width:15px;
}
.stc h4
{
padding:4px;
margin:0;
}
.box .tl,.box .tc,.box .tr
{
height:15px;
}
.tl
{
background:transparent url(border-tl.gif) no-repeat top left;
width:15px;
}
.tc
{
width:284px;
background:transparent url(border-tc.gif) repeat-x top left;
}
.tr
{
background:transparent url(border-tr.gif) no-repeat top right;
width:15px;
}
.box .middle
{
width:100%;
clear:both;
float:none;
min-height:100px;
}
.ml
{
width:1px;
/* background:transparent url(border-ml.gif) repeat-y top left; */
}
.mc
{
width:313px;
border-color:#777;
border-left-style:solid;
border-right-style:solid;
border-left-width:1px;
border-right-width:1px;
background:transparent url(border-mc.gif);
}
.mc p,.mc h4
{
margin:5px;
}
.mr
{
width:1px;
/* background:transparent url(border-mr.gif) repeat-y top right; */
float:right;
}
.bl
{
background:transparent url(border-bl.gif) no-repeat top left;
width:15px;
height:15px;
}
.bc
{
width:284px;
height:15px;
background:transparent url(border-bc.gif) repeat-x;
}
.br
{
background:transparent url(border-br.gif) no-repeat top right;
width:15px;
height:15px;
}
.break
{
float:none;
clear:both;
}
pre
{
margin:25px;
padding:10px;
background:#ccc;
border:1px dotted #aaa;
}
</style>
</head>
<body>
<h1> Rounded Rectangles - Variable Size</h1>
<p> Simple demonstration of the use of <a href="http://imagemagick.org" title="ImageMagick Home" > ImageMagick</a> to create images to support CSS based rounded rectangles.</p>
<div class="box" >
<div class="stl" > </div>
<div class="stc" > <h4> Shaded Title Box</h4> </div>
<div class="str" > </div>
<div class="middle" >
<div class="ml" > </div>
<div class="mc" > <p> "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p> </div>
<div class="mr" > </div>
</div>
<div class="bl" > </div>
<div class="bc" > </div>
<div class="br" > </div>
</div>
<div class="box" >
<div class="tl" > </div>
<div class="tc" > </div>
<div class="tr" > </div>
<div class="middle" >
<div class="ml" > </div>
<div class="mc" >
<h4> Rounded Corner Box</h4>
<p> "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p> </div>
<div class="mr" > </div>
</div>
<div class="bl" > </div>
<div class="bc" > </div>
<div class="br" > </div>
</div>
<div class="break" > </div>
<hr />
<h2> ImageMagick Calls to Create Images</h2>
<pre>
convert -size 100x100 xc:none -stroke "#777777" -draw "roundRectangle 1,1 99,99 15,15" rr.png
convert -size 100x50 gradient:"#777777-none" -gravity center -crop 100x27+0+0 +repage gradient.png
convert rr.png gradient.png -compose srcin -composite -fill none -strokewidth 1 -stroke "#777777" -draw "roundRectangle 1,1 99,99 15,15" rrg.png
convert rrg.png -crop 15x27+0+0 +repage -flatten shaded-border-tl.gif
convert rrg.png -crop 1x27+50+0 +repage -flatten shaded-border-tc.gif
convert rrg.png -crop 15x27+85+0 +repage -flatten shaded-border-tr.gif
convert rrg.png -crop 15x15+0+85 +repage -flatten border-bl.gif
convert rrg.png -crop 1x15+50+85 +repage -flatten border-bc.gif
convert rrg.png -crop 15x15+85+85 +repage -flatten border-br.gif
convert rrg.png -crop 2x5+0+50 +repage -flatten border-ml.gif
convert rrg.png -crop 1x1+50+50 +repage -flatten border-mc.gif
convert rrg.png -crop 2x5+98+50 +repage -flatten border-mr.gif
convert -size 100x100 xc:none -fill none -stroke "#777777" -draw "roundRectangle 1,1 99,99 15,15" rr2.png
convert rr2.png -crop 15x18+0+0 +repage -flatten border-tl.gif
convert rr2.png -crop 1x18+50+0 +repage -flatten border-tc.gif
convert rr2.png -crop 15x18+85+0 +repage -flatten border-tr.gif
</pre>
<hr />
<h2> Images</h2>
<img src="border-tl.gif" />
<img src="border-tc.gif" />
<img src="border-tr.gif" />
<br />
<img src="shaded-border-tl.gif" />
<img src="shaded-border-tc.gif" />
<img src="shaded-border-tr.gif" />
<br />
<img src="border-ml.gif" />
<img src="border-mc.gif" />
<img src="border-mr.gif" />
<br />
<img src="border-bl.gif" />
<img src="border-bc.gif" />
<img src="border-br.gif" />
</body>
</html>