Bonjour,

j'ai une feuille de style de ce genre la :

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
 
.style2
{
	height: 600;
	vertical-align: middle;
	margin-top: 0px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	color: #FFFFFF;
	text-align:center;
	padding:0px;
	margin-bottom:10;
}
 
.style1
{
	height: 27;
	vertical-align: middle;
	margin-top: 0px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	color: #FFFFFF;
	text-align:center;
	padding:0px;
	margin-bottom:10;
}
Bref style1 et style2 différent uniquement lors de la déclaration de height.
Il n'y a pas un moyen pour regrouper les deux ? Faire quelque chose du genre :

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
 
.style2
{
  height:600;
  vertical-align: style1.vertical-align;
  ...
 
}
 
.style1
{
        height: 27;
	vertical-align: middle;
	margin-top: 0px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	color: #FFFFFF;
	text-align:center;
	padding:0px;
	margin-bottom:10;
}
cordialement