div float alignement IE<>Firefox
Bonjour à tous !
Je veux mettre dans une cellule d'un tableau HTML deux div avec une image de fond côte à côte.
Code:
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 Firefox pas de problème voici ce que ca donne :
http://calap2.free.fr/autres/exempleff.png
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 :
http://calap2.free.fr/autres/exemple.png
Pourtant il y a la place en largeur de les mettre côte à côte.
Je bloque un peu...
Merci mille fois par avance !