Bonjour à tous,
J'ai un problème d'agencement de div. Ca ne marche pas sous Firefox / IE7 mais ça marche avec IE6.
Voici deux exemples :
Mozilla / IE7
IE6
Le code du premier bloque sans le titre :
Le code du deuxième bloque avec le titre :
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 <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Première barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">7</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">Leases</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">38%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 143.616px; height : 12px; float : left; overflow : hidden; background-color : #47BE0E;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 230.384px; height : 12px; float : left; overflow : hidden;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Deuxième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">18</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">Leases</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">92%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 347.7452px; height : 12px; float : left; overflow : hidden; background-color : #999999;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 26.2548px; height : 12px; float : left; overflow : hidden;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Troisième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">20</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">IP</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">100%</div> <div style="border : solid 1px #000000; width : 374px; height : 12px; float : left; overflow : hidden; background-color : #FF7900;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Quatrième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">0</div> <div style="text-align : left; width : 20px; height : 18px; float : left;"> </div> <div style="text-align : left; width : 130px; height : 18px; float : left;">IP</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">0%</div> <div style="border : solid 1px #000000; width : 374px; height : 12px; float : left; overflow : hidden;"></div> </div>
J'ai essayer avec un clear : left; ou de mettre des <br/> mais rien n'y fait.
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
59
60
61 <div class="spaceTitle"></div> <table class="partTitle"> <tr> <td class="h2"> <a name="5"></a> Titre </td> <td class="blockUp"> <a href="#" title="HAUT">HAUT<img src="http://dev1/img/report/up.gif" border="0px" title="HAUT" style="padding-left : 3px;" /></a> </td> </tr> </table> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Cinquième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">16</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">Leases</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">84%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 317.0211px; height : 12px; float : left; overflow : hidden; background-color : #FF7900;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 56.9789px; height : 12px; float : left; overflow : hidden;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Sixième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">5</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">Leases</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">25%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 93.5px; height : 12px; float : left; overflow : hidden; background-color : #3399FF;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 280.5px; height : 12px; float : left; overflow : hidden;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Huitième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">10</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">IP</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">50%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 187px; height : 12px; float : left; overflow : hidden; background-color : #3399FF;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 187px; height : 12px; float : left; overflow : hidden;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Neuvième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">15</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">IP</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">75%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 280.5px; height : 12px; float : left; overflow : hidden; background-color : #FF3E3E;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 93.5px; height : 12px; float : left; overflow : hidden;"></div> </div> <div class="barGraphSpace"></div> <div class="part"> <div style="text-align : left; width : 154px; height : 18px; float : left;">Dixième barre</div> <div style="text-align : right; width : 30px; height : 18px; float : left;">12</div> <div style="text-align : left; width : 20px; height : 18px; float : left;">K</div> <div style="text-align : left; width : 130px; height : 18px; float : left;">IP</div> <div style="text-align : right; margin-right : 20px; width : 40px; height : 18px; float : left;">60%</div> <div style="border-left : solid 1px #000000; border-top : solid 1px #000000; border-bottom : solid 1px #000000; width : 224.4px; height : 12px; float : left; overflow : hidden; background-color : #FF3E3E;"></div> <div style="border-top : solid 1px #000000; border-bottom : solid 1px #000000; border-right : solid 1px #000000; width : 149.6px; height : 12px; float : left; overflow : hidden;"></div> </div>
N'hésitez pas si vous avez des idées.
Merci d'avance
Partager