Raga come creo una tabella del genere con i css?

codice:
  <table width="250" border="1" cellspacing="0" cellpadding="0">
    <tr>
      <td height="17"></td>
      <td></td>
      <td height="17">[img]close.png[/img]</td>
    </tr>
    <tr>
      <td width="17" height="17">[img]borderTopLeft.png[/img]</td>
      <td width="100%" background="borderTopCenter.png"></td>
      <td width="17" height="17">[img]borderTopRight.png[/img]</td>
    </tr>
    <tr>
      <td height="100%" style="background:url(borderMiddleLeft.png) repeat-y"></td>
      <td bgcolor="#FFFFFF">contenuto</td>
      <td height="100%" style="background:url(borderMiddleRight.png) repeat-y"></td>
    </tr>
    <tr>
      <td width="17" height="17">[img]borderBottomLeft.png[/img]</td>
      <td width="100%" background="borderBottomCenter.png"></td>
      <td width="17" height="17">[img]borderBottomRight.png[/img]</td>
    </tr>
  </table>
o melgio ci riesco ma vorrei che qualsiasi cosa menel contenuto quello intorno si ripete e si allunga rispetto ad esso..proprio come fa la tabella.