Bonjour,
je dispose d'une page PHP dans laquelle j'ai dans le <BODY> où j'affiche un tableau. mais à l'intereiur d'une balise php, j'ajoute des lignes à ce tableau.
Alors dans un fichier css, je centre le cors entier de la page par :
fichier css :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 body { width:750px; margin:auto; }
code page.php
Code html : 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 <html> <head> <title>Tableau pour les charges trimestrielles</title> <link rel="stylesheet" media="screen" type="text/css" title="Design" href="budget_css.css" /> </head> <body> <table> <caption> CHARGES TRIMESTRIELLES <b>30-mars</b>. </caption> <tr> <th>N° Cpte</th> <th>Désignation</th> <th>CR</th> <th>Code</th> <th>Montant</th> <th>Date</th> <th>Taux</th> <th>Reference</th> </tr> <tr> <td>data1</td> <td>data2</td> <td>data3</td> <td>data4/td> </tr> </table> </body> </html>
Mais ça le centre pas:
ça le mets toujours en gauche en retrait.
Pourquoi? j'ai besoin d'aide. alors que j'ai pris toutes les dispositions (lettre les deux fichiers dans le même répertoire°;
Merci d'avance
Cordialement
ça le c
Partager