bonjour a tous !
j'ai repris un programe css sur internet et l'ai modifié pour mon site tout aller bien jusqu'à ce que je me rende compte que lorsque je retrecissais ma fenetre le "programe" chevochait les autre elements de la page (car il est fixé a droite contre le scroll) voila pourquoi j'aimerais que vou m'aidiez à fixé mon image au centre de la page (mais reglé de facon à ce que je puisse le decalé a droite ou a gauche par rappor au centre)

voici le programe :

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
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
<html>
 
<head>
<title>as</title>
<link rel="stylesheet" href="styles/page.css">
 
<style type="text/css">
 
#fixed { position: fixed;
 
bottom: 500;
 
right: 300;
 
width:100px;
 
height:0px;
 
}
 
body #fixed { position: fixed;
 
}
 
</style>
 
 
			<script language='javascript' src='http://127.0.0.1:1027/js.cgi?pca&r=5436'></script>
 
<script type="text/javascript">
 
function getWindowHeight() {
 
var windowHeight = 0;
 
if (typeof(window.innerHeight) == 'number') {
 
windowHeight = window.innerHeight;
 
}
 
else {
 
if (document.body && document.body.clientHeight) {
 
windowHeight = document.body.clientHeight;
 
}
 
else {
 
if (document.documentElement && document.documentElement.clientHeight) {
 
windowHeight = document.documentElement.clientHeight;
 
}
 
}
 
}
 
return windowHeight;
 
}
 
function setFooter() {
 
if (document.getElementById) {
 
var windowHeight = getWindowHeight();
 
if (windowHeight > 0) {
 
var footerElement = document.getElementById('fixed');
 
if (windowHeight - 500 >= 0) {
 
if ((document.all) && (navigator.appVersion.indexOf("Mac",0)<0)) {
 
footerElement.style.position = 'absolute';
 
footerElement.style.top = (document.body.scrollTop + windowHeight - 500) + 'px';
 
}
 
else {
 
footerElement.style.position = 'fixed';
 
footerElement.style.top = (windowHeight - 60) + 'px';
 
}
 
}
 
else {
 
footerElement.style.position = 'static';
 
}
 
}
 
}
 
}
 
window.onload = function() {
 
setFooter();
 
}
 
window.onresize = function() {
 
setFooter();
 
}
 
window.onscroll = function() {
 
setFooter();
 
}
 
</script>
 
 
 
</head>
 
<body>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div id="fixed">
 
    <p><a href="B parti.bmp"><img src="B parti.bmp" width="120" height="50" border="0"></a></p>
 
</div>
 
</body>
 
</html>
 
<script language='javascript'>postamble();</script>
voila j'espere avoir été assez claire
merci d'avance