Avoir une table de données entourée de balises de formulaire. Au bas de la page ont un pied de page qui est fixé.html footer se déplace vers la droite lorsque la table est vide?
Lorsque la table est vide (seule l'en-tête de la table s'affiche), l'ensemble du pied de page se décale à mi-chemin de l'écran, vers la droite.
Des idées?
<form action="/cgi-bin/Lib.exe" method=POST name="dd" ID="Form1">
<div id="yyy">
<table cellspacing="0" ID="Table1">
<thead>
<tr>
<th>Start</th>
<th>End</th>
</tr>
</thead>
<p><small><font face="Arial"><small>$DATA</small></font></small></p>
<tbody>
<tr>
<td><input type=radio name="begin" value="$START" ID="Radio0"> $START</td>
<td>$END <input type=radio name="end" value="$END" ID="Radio3"></td>
</tr>
<tr>
<td><input type=radio name="begin" value="$START" ID="Radio1"> $START</td>
<td>$END <input type=radio name="end" value="$END" ID="Radio4"></td>
</tr>
<tr>
<td><input type=radio name="begin" value="$START" ID="Radio2"> $START</td>
<td>$END <input type=radio name="end" value="$END" ID="Radio5"></td>
</tr>
</tbody>
</table>
</div>
<p><small><font face="Arial"><small>$DATA</small><strong></p>
</strong></font></small>
</form>
<div id="footer">
<div id="labfooter">
</div>
</div>
Le CSS:
#footer {
width:100%;
height:5em;
}
html>body #footer {
position:fixed;
bottom:0;
z-index:10; /* Prevent certain problems with form controls */
}
#header,
#footer {
color:#111;
background:#ddd;
text-align:center;
}
Pourriez-vous montrer quelques exemples de code? –
En utilisant un modèle –
quel navigateur? travailler ici w/ff 3.0.7/xp. –