Comment centrer ma bannière
martine et chantal
Messages postés
517
Statut
Membre
-
martine et chantal Messages postés 517 Statut Membre -
martine et chantal Messages postés 517 Statut Membre -
Bonjour,
j'ai créé un myspace music 1.0 factices...pour faire des tests.
impossible de trouver le code pour centrer ma bannière qqsoit la résolution.
j'ai symbolisé ma bannière par une croix noir.
mon code fonctionne sous navigation MOZZILA mais pas sous IE.... pourquoi ?
voici mon lien : www.myspace.com/martinechantal
voici le code de ma page :
<style>
body{background-image:url(IMAGE FOND);background-position: top; background-repeat:repeat-y;
background-attachment:fixed;}
table, td {background-color: transparent;}
</style>
<style>
body{ background-position:top center;margin-top: 500;}
div.topbanner {top: 0; left:0; margin-left:0px;margin-right:0px;width: 100%;height: 30px; position: absolute; }
</style>
<div class="topbanner" align="center"><img src="BANNIERE" border="0" /></div>
</style>
j'ai créé un myspace music 1.0 factices...pour faire des tests.
impossible de trouver le code pour centrer ma bannière qqsoit la résolution.
j'ai symbolisé ma bannière par une croix noir.
mon code fonctionne sous navigation MOZZILA mais pas sous IE.... pourquoi ?
voici mon lien : www.myspace.com/martinechantal
voici le code de ma page :
<style>
body{background-image:url(IMAGE FOND);background-position: top; background-repeat:repeat-y;
background-attachment:fixed;}
table, td {background-color: transparent;}
</style>
<style>
body{ background-position:top center;margin-top: 500;}
div.topbanner {top: 0; left:0; margin-left:0px;margin-right:0px;width: 100%;height: 30px; position: absolute; }
</style>
<div class="topbanner" align="center"><img src="BANNIERE" border="0" /></div>
</style>
Configuration: Windows XP Firefox 2.0.0.20
3 réponses
-
-
salut, je suis pas un pro mais j'aurais essayé à ta place de mettre en plus la balise <CENTER> la:
</style>
<CENTER>
<div class="topbanner" align="center"><img src="BANNIERE" border="0" /></div>
</style>
à moins que ce soit pas ce que tu veuille, mais la je peux plus rien pour toi.
A + -
j'ai finalement trouvé un intermédiaire qui fonctionne.
ma bannière se trouve à la place de mon pseudo.
pas de compromis entre MOZZ et IE à par qq pixel
voici mon lien définitif :
www.myspace.com/essamm
à l'occasion vous pourrez écouter mon son. (influence APHEX TWIN)