Probleme pour centrer mon site sur le web
Dernière réponse : dans Programmation
Bonjour, j'ai créé un site mais je n'arrive pas a le centrer sur le web, quelqu'un pourrait il m'aider. Merci par avance.
<html> <head> <title>{%MetaTitle%}</title> <meta name="keywords" content="{%MetaKeywords%}"> <meta name="description" content="{%MetaDescription%}"> <meta http-equiv="Content-Type" content="{%MetaCharset%}"> <style type="text/css"> <!-- body{width:100%;} td { font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; } .content { padding-top: 20px; padding-right: 20px; padding-bottom: 40px; padding-left: 20px; background-image: url(images/e019_22.png); background-position: left; background-repeat: repeat-y; } .menutop { background-image: url(images/e019_10.png); background-repeat: no-repeat; background-position: right; height: 31px; padding-right: 15px; padding-left: 15px; vertical-align: middle; font-weight: bold; color: #FFFFFF; } a:link, a:visited { color: #FF0000; text-decoration: underline; } a:hover { color: #000099; text-decoration: none; } .menutop a:link, .menutop a:visited { color: #FFFFFF; text-decoration: none; } .menutop a:hover { color: #FFFFFF; text-decoration: underline; } .footer, .footer a:link, .footer a:visited { color: #FFFFFF; } .newsbar { color: #000000; font-weight: bold; padding-left: 15px; } .logo { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; } .leftcontent { padding-top: 10px; padding-right: 10px; padding-bottom: 25px; padding-left: 10px; } .style1 {font-size: 16px} body { background-image: url(images/bg_e019.gif); } --> </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table style="text-align: center; width: 780px; height: 100%;" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff"> ;" <tbody> </tbody> <tbody> <tr> <td style="text-align: center;"> </td> </tr> </tbody> </table> <table style="text-align: center; width: 760px; height: 100%;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td height="146" background="images/e019_03.png"> <table style="width: 100%;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="22"><img src="images/e019_02.png" alt="" width="22" height="146" /></td> <td width="200"> <table style="width: 160px;" border="0" cellspacing="0" cellpadding="5"> <tbody> <tr> <td class="logo" style="text-align: center;"><span class="style1">{%WebsiteName%} </span><br /></td> </tr> </tbody> </table> </td> <td> <p style="text-align: center;"><span style="color: #ffffff; font-size: xx-large;"><span style="font-family: "Courier New", Courier, monospace;"><strong><span style="font-family: Impact, sans-serif;"><span style="font-size: x-large;">STRIKE COMBAT 72</span></span></strong></span></span></p> <p style="text-align: center;"><span style="font-size: small; color: #ffffff;"><em><strong><span style="font-size: medium;"><span style="font-family: Georgia, sans-serif;"><span style="font-size: small;">"Que feriez-vous en cas d'agression ?"</span></span></span></strong></em></span></p> </td> <td width="22"><img src="web_images/shocknife.jpg" alt="" width="109" height="126" /></td> </tr> </tbody> </table> </td> </tr> <tr> <td height="31" background="images/e019_12.png"> <table border="0" cellspacing="0" cellpadding="0" background="images/e019_08.png"> <tbody> <tr> {%menu_start=1%} <td class="menutop"><a href="{%menu_href%}">{%menu_display%}</a></td> {%menu_end=1%} </tr> </tbody> </table> </td> </tr> <tr> <td background="images/e019_16.png"> <table style="width: 100%;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="81" height="11"><img src="images/e019_15.png" alt="" width="81" height="11" /></td> <td height="11"><img src="images/e019_16.png" alt="" width="7" height="11" /></td> <td width="53" height="11"><img src="images/e019_18.png" alt="" width="53" height="11" /></td> </tr> </tbody> </table> </td> </tr> <tr> <td height="100%" valign="top"> <table style="width: 100%; height: 100%;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="178" valign="top"> <table style="width: 178px;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="newsbar" height="35"><img src="web_images/bat20dos20strike20combat_personnage.jpg" alt="" width="334" height="357" /></td> </tr> <tr> <td height="5"><img src="images/e019_25.png" alt="" width="178" height="5" /></td> </tr> <tr> <td class="leftcontent"> <object width="425" height="350" data="<a href="http://www.youtube.com/v/ev5YHPsxV-U&feature" target="_blank">http://www.youtube.com/v/ev5YHPsxV-U&feature</a>" type="application/x-shockwave-flash"> <param name="src" value="<a href="http://www.youtube.com/v/ev5YHPsxV-U&feature" target="_blank">http://www.youtube.com/v/ev5YHPsxV-U&feature</a>" /> </object> </td> </tr> <tr> <td> <object width="425" height="350" data="<a href="http://www.youtube.com/v/jDgP354Pk_I&feature" target="_blank">http://www.youtube.com/v/jDgP354Pk_I&feature</a>" type="application/x-shockwave-flash"> <param name="src" value="<a href="http://www.youtube.com/v/jDgP354Pk_I&feature" target="_blank">http://www.youtube.com/v/jDgP354Pk_I&feature</a>" /> </object> </td> </tr> </tbody> </table> </td> <td class="content" valign="top">{%content%}</td> </tr> </tbody> </table> </td> </tr> <tr> <td background="images/e019_28.png"> <table style="width: 100%; height: 69px;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="53"><img src="images/e019_27.png" alt="" width="53" height="69" /></td> <td valign="bottom"> <table style="width: 100%;" border="0" cellspacing="0" cellpadding="15"> <tbody> <tr> <td class="footer" style="text-align: center;">{%WebsiteFooter%}</td> </tr> </tbody> </table> </td> <td width="53"><img src="images/e019_30.png" alt="" width="53" height="69" /></td> </tr> </tbody> </table> </td> </tr> <tr> <td> </td> </tr> </tbody> </table> </body> </html>
Autres pages sur : probleme centrer site web
Lassé par la pub ? Créez un compte
j'ai changé ça par contre
body {width: 1200px;margin: 0 auto;}, j'ai remplacé la valeur 800 par 1200
par e style="text-align: center; width:1200px;height: 100%;" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
table style="text-align: center; width: 1200px; height: 100%;" border="0" cellspacing="0"00
J'ai augmenté les valeurs des px c'est beaucoup mieux mais ça ne prend pas encore toute ma page
body {width: 1200px;margin: 0 auto;}, j'ai remplacé la valeur 800 par 1200
par e style="text-align: center; width:1200px;height: 100%;" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
table style="text-align: center; width: 1200px; height: 100%;" border="0" cellspacing="0"00
J'ai augmenté les valeurs des px c'est beaucoup mieux mais ça ne prend pas encore toute ma page
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumCentrer un site web
- ForumWeb creator 4 centrer son site web
- ForumCentrer site web css
- downloadCentrer mon site web acappella
- ForumCode centrer un site web
- ForumSite web affichage probleme
- ForumProbleme affichage site web
- ForumProbleme accent site web
- ForumProbleme pour modifier site web
- ForumProbleme resolution site web
- Voir plus