Salut,
Im rendre un projet, et j'ai décidé d'utiliser un style que j'ai fait il ya quelques mois.
Maintenant Im sûr à 100% validée pour le XHTML 1.0 & 1.1, mais le second, je entrez:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
en haut de la page, les "TD" J'utilise des droits d'auteur cesse d'être au bas de la page et colle à la fin du contenu.
Signification: Le tableau principal Im aide ne prendra pas 100% de la hauteur de la page peut offrir, ou à la verticale "-align: bottom" n'affecte pas la cellule de plus et Theres quelque chose d'autre pour le XHTML.
Mon code:
<html.....head..body..>
<table class="mainwindow" style="height: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" style="height: 100%;" cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align: top;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
** Content **
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="vertical-align: bottom;">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="subtitle">**Copy rights **</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
- <html.....head..body..>
- <table class="mainwindow" style="height: 100%;" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <table width="100%" style="height: 100%;" cellpadding="0" cellspacing="0">
- <tr>
- <td style="vertical-align: top;">
- <table width="100%" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- ** Content **
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td style="vertical-align: bottom;">
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td class="subtitle">**Copy rights **</td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>
body {
margin:0px 0 0 0;
padding:0 0 0 0;
font:76% Tahoma;
background:#eaeaea url(Style/bg.gif) top center repeat-y;
color:#3a3a3a;
text-align: center;
height: 100%;
}
table.mainwindow {
margin-left: auto;
margin-right: auto;
background-color: #76c2e7;
width: 781px;
background-repeat: no-repeat;
background-position: top right;
height: 100%;
}
td.subtitle {
background-color: #CFCFCF;
width: 100%;
height: 25px;
color: #555555;
font-size: 12px;
font-family: Arial;
text-align: center;
}
- body {
- margin:0px 0 0 0;
- padding:0 0 0 0;
- font:76% Tahoma;
- background:#eaeaea url(Style/bg.gif) top center repeat-y;
- color:#3a3a3a;
- text-align: center;
- height: 100%;
- }
- table.mainwindow {
- margin-left: auto;
- margin-right: auto;
- background-color: #76c2e7;
- width: 781px;
- background-repeat: no-repeat;
- background-position: top right;
- height: 100%;
- }
- td.subtitle {
- background-color: #CFCFCF;
- width: 100%;
- height: 25px;
- color: #555555;
- font-size: 12px;
- font-family: Arial;
- text-align: center;
- }
Désolé pour toutes les tables - j'en ai besoin.
S'il vous plaît aider.
Merci beaucoup,
JFord