|
|
|
|
Posté par
StreM, le mercredi 7 septembre 2005 à 14:14:36<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>
Lol, grâce à ce formidable IE, j'arrive à l'aligner bien à droite, mais du coup c'est le bas qui prend de l'espace.
Si j'ai des nouvelles, je transmet... Si Tout te parraît mal, méchant, lié contre toi, ne remet pas Tout en question.
|
Que de souvenirs lointains... il n'y a pas un truc comme marginà mettre à zéro ?
|
|
En fait, non !
Si je ne mets pas "transitional", alors ca ne fonctionne plus comme je veux sous Firefox ! Jvais craquer.... Moins le blanc est intelligent, plus le noir lui parait bête |
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.
Pour info, dot.gif est un carré rouge de 3px de cote. et l'image du fond fait 800px par 517px (on enleve 3px fois 2). Mais si ca continue, je vais mettre une case div au lieu d'une image. <!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 |
Hé ben voila la solution, c'est de mettre, dans la balise <table> :
style="font-size:0" Vive IE quand-meme.... Moins le blanc est intelligent, plus le noir lui parait bête |
Et encore tu n'as pas testé sous opera ;) |
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> |
| 26/01 11h01 | la css pour présenter vos images | CSS |
| 05/04 20h33 | Mise en forme des articles de la base de connaissance | FAQ |
| 27/01 16h03 | =CHANGER L ASPECT DU CURSEUR EN CSS= | CSS |
| 23/01 14h05 | Redresser une perspective | Infographie |
| 21/07 11h53 | Comment débuter, quel langage? | Langages |
| 29/06 11h31 | Pb alignement images Dreamweaver XHTML / CSS | 5 |
| 14/10 15h08 | [CSS] Aligner à droite au milieu | 3 |
| 27/09 17h23 | Css / aligner 2 images d'arrière-plan | 4 |
| 29/06 16h45 | Aligner images côte à côte | 3 |
![]() | Image Resizer - Petit utilitaire (PowerToy) basique, très simple, permettant de réduire la taille d'une image, dans le but, notamment, de... | Catégorie: Graphisme Licence: Freeware/gratuit |
![]() | VSO Image Resizer - Le logiciel VSO Image Resizer organise vos photos en réduisant leur résolution et en les déplaçant facilement au sein de... | Catégorie: Graphisme Licence: Freeware/gratuit |
![]() | Visual Basic Express 2005 - Le langage de programmation Visual Basic est historiquement dans les gènes de la société Microsoft. Avec plus de 30.000... | Catégorie: Visual Basic Licence: Freeware/gratuit |
![]() | Visual Basic 6 Runtime (VB6 DLL) - Le Runtime Visual Basic 6 contient l'ensemble des librairies (DLL) nécessaires pour exécuter des programmes écrits en... | Catégorie: Librairies (DLL) Licence: Freeware/gratuit |
![]() | Canon imagePROGRAF iPF8100 | Catégorie: Imprimante | 5,743.50 € MicroChoix |
![]() | Canon imagePROGRAF iPF8000 | Catégorie: Imprimante | 6,485.50 € MicroChoix |
![]() | TNB CSSP1 | Catégorie: Casque audio | 7.49 € Alapage |
![]() | TNB CSSP2 | Catégorie: Casque audio | 7.49 € Alapage |