Bonjour,
Je n'arrive pas à définir un alignement pour toute une colonne.
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
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Document sans nom</title>
<style>
.table1 {
	width:400px;
	border:solid 1px #999;
}
.table1 td{
	border:solid 1px #999;
}
.col1 {
	width:50%;
	background-color:#CFF;
	text-align:right;
}
.col2 {
	width:25%;
	background-color:#FCF;
	text-align:center;
}
</style>
</head>
<body>
<table class="table1">
	<col class="col1"/>
	<col class="col2"/>
	<col class="col2"/>
	<tr>
		<td>Un</td>
		<td>1</td>
		<td>11</td>
	</tr>
	<tr>
		<td>Deux</td>
		<td>2</td>
		<td>22</td>
	</tr>
</table>
</body>
La couleur et la largeur sont bien prises en compte mais pas l'alignement.
Est-ce possible sans avoir à définir la classe de chaque td ?