Bonjour à tous !
Je veux mettre dans une cellule d'un tableau HTML deux div avec une image de fond côte à côte.
Sous Firefox pas de problème voici ce que ca donne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <td width=16> <div style="float:left;display:block;width:8px;height:20px;margin:0;padding:0;background:url(image.jpg) no-repeat;"> <a href="url.html" style="display:block;width:8px;height:20px;margin:0;padding:0;"></a></div> <div style="float:right;display:block;width:8px;height:20px;margin:0;padding:0;background:url(image.jpg) no-repeat;"> <a href="url.html" style="display:block;width:8px;height:20px;margin:0;padding:0;"></a></div> </td>
Sous IE il y a un div qui se place en haut à gauche et l'autre en bas à droite comme sur sur cette capture d'écran où les 2 div sont en vert :
Pourtant il y a la place en largeur de les mettre côte à côte.
Je bloque un peu...
Merci mille fois par avance !
Partager