Précédent   Forum du club des développeurs et IT Pro > PHP > Langage > Syntaxe
Syntaxe Forum d'entraide sur la syntaxe de PHP et la POO. Avant de poster -> FAQ syntaxe, Cours d'initiation et cours de POO
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 06/12/2012, 14h34   #1
hugodu28
Membre habitué
 
hugues dupont
Pompier
Inscription : janvier 2010
Messages : 316
Détails du profil
Informations personnelles :
Nom : hugues dupont
Localisation : France

Informations professionnelles :
Activité : Pompier

Informations forums :
Inscription : janvier 2010
Messages : 316
Points : 114
Points : 114
Par défaut positionnement d'une image par dessus une autre

bonjour,
j'ai un formulaire avec la carte du département.
Par dessus, via un tableau, j'insère des carrés de couleurs qui correspond à une variable.
Le HIC, c'est que le positionnement n'est pas tip top.

Existe-t-il un moyen d'effectuer un positionnement relatif?

si image du département largeur et longueur 100%
position carré 1 largeur à 28% de la gauche et 66% du haut

voici le code du tableau

PS: la fonction "info bulle" via le contrôle "alt" ne fonctionne pas???

Merci par avance

Code :
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
 <table align="center"><tr><td width="918">
<table width="918" height="495" background="gptsud.JPG">
<tr>
<td align="center" height="41" width="79"></td><td align="center" height="41" width="69"></td><td align="center" height="41" width="66"></td><td align="center" height="41" width="63" ></td><td align="center" height="41" width="63"></td><td align="center" height="41" width="62"></td><td align="center" height="41" width="60" ></td><td width="64"></td><td width="64"></td><td width="62"></td><td width="63"></td><td width="63"></td><td width="84"></td></tr>
<tr>
<td align="center" height="38" width="79"></td><td align="center" height="38" width="69"></td><td align="center" height="38" width="66"></td><td align="center" height="38" width="63" ></td><td align="center" height="38" width="63"></td><td align="center" height="38" width="62"><?php 
for ($i = 321 ; $i<=327; $i++) {
	if ($i==326){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=326"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25"  border="0"  /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="38" width="60" ></td><td><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==308){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=308"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0"  /><a/>
<?php 
}}
?><?php } ?></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="37" width="79"></td><td align="center" height="37" width="69"></td><td align="center" height="37" width="66"><?php 
for ($i = 301 ; $i<=305; $i++) {
	if ($i==303){ 
if ($_CS==1) {
?>
 <a href="centre.php?num1=303" alt="CS Brou"> <img src="<?php echo $B{$i}; ?>" alt="CS Brou"align="middle"hspace="" height="25" width="25" border="0"  /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="37" width="63" ></td><td align="center" height="37" width="63"></td><td align="center" height="37" width="62"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==313){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=313"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="37" width="60" ></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="34" width="79"></td><td align="center" height="34" width="69"></td><td align="center" height="34" width="66"></td><td align="center" height="34" width="63" ></td><td align="center" height="34" width="63"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==307){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=307"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0"  /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="34" width="62"></td><td align="center" height="34" width="60" ></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="31" width="79"></td><td align="center" height="31" width="69"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==306){
if ($_CI==1) { 
?>
 <a href="centre.php?num1=306"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="31" width="66"></td><td align="center" height="31" width="63" ></td><td align="center" height="31" width="63"></td><td align="center" height="31" width="62"><?php 
for ($i = 301 ; $i<=305; $i++) {
	if ($i==302){ 
if ($_CS==1) {
?>
 <a href="centre.php?num1=302"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace=""  height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="31" width="60" ></td><td></td><td><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==309){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=309"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace=""  height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td></td><td></td><td></td><td></td></tr>
 
<td align="center" height="35" width="79"></td><td align="center" height="35" width="69"></td><td align="center" height="35" width="66"></td><td align="center" height="35" width="63" ><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==314){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=314"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="35" width="63"></td><td align="center" height="35" width="62"></td><td align="center" height="35" width="60" ></td><td></td><td></td><td></td><td><?php 
for ($i = 301 ; $i<=305; $i++) {
	if ($i==305){
if ($_CS==1) {
?>
 <a href="centre.php?num1=305"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25"  border="0"/><a/>
<?php 
}}
?><?php } ?></td><td></td><td></td></tr>
<tr>
<td align="center" height="35" width="79"></td><td align="center" height="35" width="69"></td><td align="center" height="35" width="66"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==311){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=311"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}}
?></td><td align="center" height="35" width="63" ></td><td align="center" height="35" width="63"></td><td align="center" height="35" width="62"></td><td align="center" height="35" width="60" ></td><td></td><td></td><td></td><td></td><td></td><td><?php 
for ($i = 321 ; $i<=327; $i++) {
	if ($i==322){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=322"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace=""  height="25" width="25" border="0" /><a/>
<?php 
}}}
?></td></tr>
<tr></tr>
<tr>
<td align="center" height="32" width="79"></td><td align="center" height="32" width="69"><?php 
for ($i = 301 ; $i<=305; $i++) {
	if ($i==301){ 
if ($_CS==1) {
?>
 <a href="centre.php?num1=301"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="32" width="66"></td><td align="center" height="32" width="63" ></td><td align="center" height="32" width="63"></td><td align="center" height="32" width="62"></td><td align="center" height="32" width="60" ></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="33" width="79"></td><td align="center" height="33" width="69"></td><td align="center" height="33" width="66"></td><td align="center" height="33" width="63" ><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==315){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=315"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}}
?></td><td align="center" height="33" width="63"></td><td align="center" height="33" width="62"></td><td align="center" height="33" width="60" ></td><td><?php 
for ($i = 321 ; $i<=327; $i++) {
	if ($i==324){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=324"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}}
?></td><td></td><td></td><td><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==310){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=310"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace=""  height="25" width="25" border="0"/><a/>
<?php 
}}
?><?php } ?></td><td></td><td></td></tr>
<tr>
<td align="center" height="31" width="79"></td><td align="center" height="31" width="69"></td><td align="center" height="31" width="66"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==316){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=316"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="31" width="63" ></td><td align="center" height="31" width="63"></td><td align="center" height="31" width=""><?php for ($i = 300 ; $i<301; $i++) {
	if ($i==300){}
if ($_CSP==1 ) {
?>
  <a href="centre.php?num1=300"> <img  src="<?php echo $B{$i}; ?>"   align="middle"hspace=""  height="25" width="25"  border="0" alt="Chateaudun"/> <a/>
 <?php } ?> <?php } ?></td><td align="center" height="20" width="15" > </td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="32" width="79"></td><td align="center" height="32" width="69"></td><td align="center" height="32" width="66"></td><td align="center" height="32" width="63" ><?php 
for ($i = 321 ; $i<=327; $i++) {
	if ($i==323){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=323"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="32" width="63"></td><td align="center" height="32" width="62"></td><td align="center" height="32" width="60" ></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="35" width="79"></td><td align="center" height="35" width="69"></td><td align="center" height="35" width="66"></td><td align="center" height="35" width="63" ></td><td align="center" height="35" width="63"></td><td align="center" height="35" width="62"></td><td align="center" height="35" width="60" ></td><td align="left"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==317){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=317"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td></td><td></td><td></td><td></td><td></td></tr>
<tr>
<td align="center" height="47" width="79"></td><td align="center" height="47" width="69"></td><td align="center" height="47" width="66"></td><td align="center" height="47" width="63" ><?php 
for ($i = 301 ; $i<=305; $i++) {
	if ($i==304){ 
if ($_CS==1) {
?>
 <a href="centre.php?num1=304"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace=""  height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="47" width="63"></td><td align="center" height="47" width="62"><?php 
for ($i = 306 ; $i<=317; $i++) {
	if ($i==312){ 
if ($_CI==1) {
?>
 <a href="centre.php?num1=312"> <img src="<?php echo $B{$i}; ?>" alt="CS"align="middle"hspace="" height="25" width="25" border="0" /><a/>
<?php 
}}
?><?php } ?></td><td align="center" height="47" width="60" ></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
</table>
hugodu28 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 08h37.


 
 
 
 
Partenaires

Hébergement Web