Bonjour,

Voilà j'essaie de faire un tableau 3x1 sans utiliser <table>.

J'ai déclaré mon tableau comme suit:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
<div class='boitePrincipale'>
   <div class='boiteHG'>
   </div>
   <div class='boiteH'>
   </div>
   <div class='boiteHD'>
   </div>
</div>
Et mon CSS comme suit :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
/*Boîte principale*/
.boitePrincipale  {
  width: 740px;
  margin-top: 50px;
}
/*****************/
/******BOITE******/
/*****************/
.boiteHG  {
  background-image: url(../Images/Global/boiteHG.png);
  background-repeat: no-repeat;
  width: 20px;
  height: 15px;
}
.boiteH  {
  background-image: url(../Images/Global/boiteH.png);
  background-repeat: repeat-x;
  height: 15px;
}
.boiteHD  {
  background-image: url(../Images/Global/boiteHD.png);
  background-repeat: no-repeat;
  width: 20px;
  height: 15px;
}
Mais je n'arrive pas à aligner les 3 cellules car elles sont les unes en dessous des autres, j'ai beau triturer avec des float ou des margin rien n'y fait.

Quelqu'un aurait-il la syntaxe correcte?

Merci