Problème lignes de tableau

Bonjour, j'ai créé un tableau avec des bords arrondis qui sont en fait une image, que je colle avec les bords du tableau. J'ai besoin de 3 lignes pour ca. Je fais donc les 3 lignes du tableau. Le problème, c'est qu'une fois dans mon code, un espace apparait entre les lignes.
Voici mon code :

<div id=corps>
<table cellspacing="0px" cellpadding="0px"><tr><td><img src="images/deco/contourhg.gif" /></td><td width="800px" height="20px" background="images/deco/contourh.gif"></td><td><img src="images/deco/contourhd.gif" /></td></tr>
<tr><td width="20px" background="images/deco/contourg.gif"></td><td bgcolor="#757575">
<p>blablablablablablablabla
blablablablablabla
blablablablablabla
blablablablablabla</p>
</td><td width="20px" background="images/deco/contourd.gif"></td></tr>
<tr><td width="20px" height="20px"><img src="images/deco/contourbg.gif" /></td><td height="20px" background="images/deco/contourb.gif"></td><td width="20px" height="20px"><img src="images/deco/contourbd.gif" /></td></tr></table>
</div>


Et voici le div corps :

#corps
{
    margin-left: 300px;
	margin-bottom: 50px;
	margin-right: 300px;
	padding-top: 65px;
	padding-left: 65px;
	padding-right: 65px;
	padding-bottom: 65px;
	z-index: 2;

}


Pouvez-vous m'aider s'il vous plait ?
Configuration: Windows Vista
Firefox 3.5.5

5 réponses

  1. Bonjour,

    enlève les "px" de tes cellpadding et cellspacing. En HTML (pas CSS), tu ne met pas d'unité quand c'est en pixel, et tu précise uniquement pour les pourcentages (%).

    Ça devrait aller mieux :)

    Et évite les tableaux, tu peux faire ça en div avec CSS et c'est bien mieux...

    Bon courage !
    0
    1. J'ai enlevé les px, mais ca ne marche pas.
      Et comment je pourrais faire en CSS ?
      0
      1. Si j'enlève le DOCTYPE, ca ne me met plus cet espace entre les lignes.
        Le problème, c'est qu'il me faut ce DOCTYPE.
        0
        1. UP, j'ai vraiment besoin d'aide svp.
          0
          1. J'ai trouvé la solution à mon problème, il faut juste remplacer le doctype <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> par celui-ci :
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> qui est en "accord" avec les tableaux :)
            0