Dans le cas de test suivant, le texte alt est centré horizontalement, mais il est collé en haut de la boîte. Comment l'obtenir au milieu?Comment obtenir du texte alt pour supporter vertical-align: middle?
<html>
<body>
<div style="height: 300px; width: 300px; border: solid black 1px;">
<img src="asdfasdf" alt="foo" style="display: block; text-align: center; vertical-align: middle"/>
</div>
</body>
</html>
Non. Cela rompt en fait l'alignement horizontal, aussi. – mike