|
|
|
|
Salut a tous !
Question bête, mais impossible d'afficher ceci correctement sous internet explorer (sous firefox, evidemment, ca marche...)
<table width=50 height=68 style="border: 1px solid black" cellspacing=0 cellpadding=0> <tr> <td width=50 height=68 style="vertical-align: bottom"> <img src="images/dot.gif" style="float:right"> </td> </tr> </table>
Répondre à Timon1102
|
En fait avec un doctype transitional du w3c html4.01 http://www.w3.org/QA/2002/04/valid-dtd-list.html , cela fonctionne chez moi avec les deux.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title> </title> </head> <body> <table width=50 height=68 style="border: 1px solid black" cellspacing=0 cellpadding=0> <tr> <td width=50 height=68 style="vertical-align: bottom"> <img src="images/dot.gif" style="float:right"> </td> </tr> </table> </body> </html> J'ai peut-être accusé IE à tort, m'enfin reste qu'il m'a tellement cassé les pieds et continue d'ailleurs toujours, que je suis pas près de lui pardonner. |
Et bien en fait, ca fonctionne en effet sur cette page de test, mais je ne trouve pas l'erreur dans cette page ci dessous. Sous FF, ca fonctionne au poil, mais sous IE.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head></head>
<body>
<div style="background: url('photos/YOUP.JPG') no-repeat;background-position:3px 3px; width:806; height: 523">
<table cellspacing=0 cellpadding=0 style="padding: 0; border:0; position: relative; left:0; top:0; width:100%; height:100%">
<tr> <td id="areahg" style="height: 3px; width:3px; vertical-align: bottom; background-color:black">
<img src="images/dot.gif" style="float: right;"></td>
<td style="vertical-align: bottom; background-color:black"><center>
<img src="images/dot.gif" style="float: bottom"></center>
</td>
<td style="vertical-align: bottom; background-color:black">
<img src="images/dot.gif" style="float: left;"></td>
</tr><tr>
<td style="background-color:black">
<img src="images/dot.gif" style="float: right;">
</td>
<td id=area style="width:800; height: 517; border: 1px white dashed"> </td>
<td style="background-color:black">
<img src="images/dot.gif" style="float: left">
</td>
</tr><tr>
<td style="vertical-align: top; background-color:black">
<img src="images/dot.gif" style="float: right;"></td>
<td style="vertical-align: top; background-color:black"><center>
<img src="images/dot.gif"></center>
</td>
<td id="areabd" style="vertical-align: top; height: 3; width:3; float: left; background-color:black">
<img src="images/dot.gif" style="float: left;"></td>
</tr>
</table>
</div>
</body>
</html>
Moins le blanc est intelligent, plus le noir lui parait bête |
Dites, je crois que le problème est dû à un espace avant et après l'image. Essayes, pour voir:
<table width=50 height=68 style="border: 1px solid black" cellspacing=0 cellpadding=0> <tr> <td width=50 height=68 style="vertical-align: bottom"><img src="images/dot.gif" style="float:right"></td> </tr> </table> au lieu de: <table width=50 height=68 style="border: 1px solid black" cellspacing=0 cellpadding=0> <tr> <td width=50 height=68 style="vertical-align: bottom"> <img src="images/dot.gif" style="float:right"> </td> </tr> </table> |