Bonjour j'ai un souci de décalage de colonnes ds 2 tableaux :
Je m'explique :
2 tableaux que je veux mettre l'un en dessous de l'autre (pour que les colonnes correspondent) le deuxième sera inclus ds un DIV pour pouvoir scroller (d'où le besoin de dexu tableaux) :
Définition du 1er :
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
<%
' Définition de la taille des colonnes
TAILLE_COL_NOM_PROJET = 350
TAILLE_COL_SITE = 40
TAILLE_COL_C16 = 200
TAILLE_COL_TOTAL = 30
TAILLE_COL_JOUR = 14
 
<% 'ENTETE DU TABLEAU %>
<table id="MainTable" width="<%=15+TAILLE_COL_NOM_PROJET+TAILLE_COL_SITE+TAILLE_COL_C16+TAILLE_COL_TOTAL+TOTAL_TAILLE_COL_JOURS+15%>" border="0" cellpadding="0" cellspacing="1">
 
 
<% '1ERE LIGNE DE L'ENTETE DU TABLEAU %>
<% 'CONTIENT LES NOMS DE JOUR         %>
<tr>
	<td width="15" rowspan="3" valign="top" </td>
	<td width="<%=TAILLE_COL_NOM_PROJET+TAILLE_COL_SITE+TAILLE_COL_C16+TAILLE_COL_TOTAL%>" colspan="4">&nbsp;</td>
<%while not RJour.eof%>
<td width="<%=TAILLE_COL_JOUR%>" class="TableauTitrePetit"><%=RJour("JOUR_SEM")%></td>
<%RJour.movenext
wend%>
<td width="15" rowspan="3" valign="top" class="TableauTitrePetit"></td>
</tr>
 
<% '2EME LIGNE DE L'ENTETE DU TABLEAU %>
<% 'CONTIENT LES NUMEROS DE JOUR      %>
<tr>
<%
RJour.movefirst
TOTAL_HEURES_MOIS = 0
while not RJour.eof
%>
<td width="<%=TAILLE_COL_JOUR%>" class="TableauTitrePetit"><%=RJour("NUM_JOUR")%></td>
<%TOTAL_HEURES_MOIS = TOTAL_HEURES_MOIS + RJour("HEURES_MAX")
RJour.movenext
wend
%>
</tr>
 
<% '3EME LIGNE DE L'ENTETE DU TABLEAU %>
<% 'CONTIENT LES ENTETE DE COLONNES   %>
<tr>
<td width="<%=TAILLE_COL_NOM_PROJET%>" Nom projet</td>
<td width="<%=TAILLE_COL_SITE%>" Site</td>
<td width="<%=TAILLE_COL_C16%>"Code projet</td>
<td width="<%=TAILLE_COL_TOTAL%>"<%=TOTAL_HEURES_MOIS%></td>
<%
RJour.movefirst
while not RJour.eof
%>
<td width="<%=TAILLE_COL_JOUR%>" <%=RJour("HEURES_MAX")%></td>
<%
RJour.movenext
wend%>
</tr>
 
</table>


Définition du 2ème :
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
 
<table id="ViewTable" colspan=<%=6+iNbJourPeriode%>  width="<%=15+TAILLE_COL_NOM_PROJET+TAILLE_COL_SITE+TAILLE_COL_C16+TAILLE_COL_TOTAL+TOTAL_TAILLE_COL_JOURS+15%>" border="0" cellpadding="0" cellspacing="1">
 
 
<% 'LIGNES DE PROJETS %>
<tr>
<td width="15" class="<%=VarClass%>"></td>
<td width="<%=TAILLE_COL_NOM_PROJET%>"><%=trim(RActivite("NOM_PROJET"))%></td> 
<td width="<%=TAILLE_COL_SITE%>"><%=trim(RActivite("NOM_SITE"))%></td>
<td width="<%=TAILLE_COL_C16%>"><%=Code_Projet%></td> 
<td width="<%=TAILLE_COL_TOTAL%>"<%=RActivite("TOTAL_MOIS")%></td> 
<%
' Affichage des valeurs par jour
RJour.movefirst
while not RJour.eof
<td width="<%=TAILLE_COL_JOUR%>"<%=RActivite("J_" & right("0" & trim(RJour("NUM_JOUR")),2))%></td>
RJour.movenext
wend
%>
<td width="15">&nbsp;</td>
 
</tr>
</table>

Le souci c'est que mes colonnes ne tombent pas "en face".. elles sont décalées !!! quelqu'un verrait-il pourquoi ?
Merci de vos réponses