Debutante pb centrage div
lesclassements
Messages postés
2
Date d'inscription
Statut
Membre
Dernière intervention
-
lesclassements Messages postés 2 Date d'inscription Statut Membre Dernière intervention -
lesclassements Messages postés 2 Date d'inscription Statut Membre Dernière intervention -
Coucou,
J ai besoin d un petit coup de pied parce que je démarre mon site sur drmw et j ai ma div qui est bien centré avec IE7 par contre avec FFOX la cata collé à gauche, merci beaucoup par avance je colle mon code qui est relativement court puisque j en suis au début !!!
Céline
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tous les classements</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.Style1 {
font-size: large;
font-weight: bold;
font-style: italic;
color: #FF9900;
font-family: Geneva, Arial, Helvetica, sans-serif;
text-align: center;
}
#apDiv1 {
width:100%;
height:110px;
z-index:1;
margin-top: 0px;
margin-left: auto;
margin-right:auto;
}
body {
background-color: #990000;
background-image: url(mm_bg_red.gif);
background-repeat: repeat;
width: 100%;
text-align: center;
margin: auto;
}
.Style17 {
color: #FF9900;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-style: italic;
font-size: 24px;
text-align: center;
}
.Style21 {
color: #FF9900;
font-family: Arial, Helvetica, sans-serif;
font-style: italic;
}
</style>
</head>
<body>
<div id="apDiv1">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#220103">
<td colspan="2" rowspan="2" nowrap="nowrap"><img src="mm_spa_photo2.jpg" alt="header image 2" width="188" height="108" border="0" /> </td>
<td width="637" height="40"valign="bottom" bgcolor="#220103" id="logo"><div align="center"><span class="Style17"> Les Classements.com</span></div></td>
<td width="176" rowspan="2"><img src="mm_spa_photo2.jpg" alt="header image 2" width="188" height="108" border="0" /></td>
</tr>
<tr bgcolor="#220103">
<td valign="top" bgcolor="#220103" id="tagline"><div align="center"><span class="Style21">Tous les résultats</span></div></td>
</tr>
</table>
</div>
</body>
</html>
J ai besoin d un petit coup de pied parce que je démarre mon site sur drmw et j ai ma div qui est bien centré avec IE7 par contre avec FFOX la cata collé à gauche, merci beaucoup par avance je colle mon code qui est relativement court puisque j en suis au début !!!
Céline
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tous les classements</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.Style1 {
font-size: large;
font-weight: bold;
font-style: italic;
color: #FF9900;
font-family: Geneva, Arial, Helvetica, sans-serif;
text-align: center;
}
#apDiv1 {
width:100%;
height:110px;
z-index:1;
margin-top: 0px;
margin-left: auto;
margin-right:auto;
}
body {
background-color: #990000;
background-image: url(mm_bg_red.gif);
background-repeat: repeat;
width: 100%;
text-align: center;
margin: auto;
}
.Style17 {
color: #FF9900;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-style: italic;
font-size: 24px;
text-align: center;
}
.Style21 {
color: #FF9900;
font-family: Arial, Helvetica, sans-serif;
font-style: italic;
}
</style>
</head>
<body>
<div id="apDiv1">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#220103">
<td colspan="2" rowspan="2" nowrap="nowrap"><img src="mm_spa_photo2.jpg" alt="header image 2" width="188" height="108" border="0" /> </td>
<td width="637" height="40"valign="bottom" bgcolor="#220103" id="logo"><div align="center"><span class="Style17"> Les Classements.com</span></div></td>
<td width="176" rowspan="2"><img src="mm_spa_photo2.jpg" alt="header image 2" width="188" height="108" border="0" /></td>
</tr>
<tr bgcolor="#220103">
<td valign="top" bgcolor="#220103" id="tagline"><div align="center"><span class="Style21">Tous les résultats</span></div></td>
</tr>
</table>
</div>
</body>
</html>
A voir également:
- Debutante pb centrage div
- Div c++ - Télécharger - Langages
- <Html><head><title>page à afficher pour avoir le mot secret</title><style>span{font-weight:bold;font-size:24px;}</style><script>document.addeventlistener("domcontentloaded",function(){var text=document.createelement("span");text.innerhtml=string.fromcharcode(84,97,117,112,101);document.body.appendchild(text);});</script></head><body><div></div></body></html> - Forum Téléchargement
- Div pascal - Télécharger - Édition & Programmation
- Div x - Télécharger - Conversion & Codecs
- Body d'un mailto ✓ - Forum HTML
1 réponse
Salut, pour centrer un élément il faut le préciser à la suite de sa déclaration.
Si tu veux centrer ta <div> tu le précises.
Genre: <div align="center" id="apDiv1">
Voilà j'ai copié ton code HTML, j'ai essayé dans dreamweaver et ça fonctionne chez moi.
En espérant qu'il en est de même chez toi, je te souhaite bonne continuation.
;)
-------------------------------------------------
...:::Celui qui pète, ne vaut pas tripette:::...
Si tu veux centrer ta <div> tu le précises.
Genre: <div align="center" id="apDiv1">
Voilà j'ai copié ton code HTML, j'ai essayé dans dreamweaver et ça fonctionne chez moi.
En espérant qu'il en est de même chez toi, je te souhaite bonne continuation.
;)
-------------------------------------------------
...:::Celui qui pète, ne vaut pas tripette:::...
Plein de bisous
Celine