Bonjour,
j'ai une image de fond qui est centrée mais je voudrait que lorsque la fenetre du navigateur est plus petite que mon tableau principale alors il ne se centre plus (il ya donc un decalage entre l'image qui se trouve dans le tableau et celle du bg), j'ai fait ceci :
Code :
- <html><head>
- <style type="text/css">
- body {
- background-image: url(bg.jpg);
- background-repeat: repeat-y;
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- background-attachment: scroll;
- background-position: top center;
- background-color: #000000;
- }
- </style>
- </head><body>
- <table align="center" border ="0" height="50" width="1000"><tr><td><img src="bg.jpg" /></td></tr></table>
- </body></html>
|
que vous pouvez tester http://kwata.net/attachement
ça marche très bien sous IE mais par sous mozilla ou opera
je ne comprends pas pourquoi ..
merci de votre aide
Message édité par attentio le 23-11-2007 à 18:59:34