vertical-align=“middle” pour les td ne fonctionne pas si nous utilisons <!doctype ...>

Je suis en train de moyen d'aligner un élément, Mais j'ai travaillé sur ce problème. J'utilise cette balise:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <body>
      <table style="width:100%; height: 100%" cellspacing="0" cellpadding="0">
                <tr>
                    <td vertical-align="middle">
                        <div id="progressContainer" style="text-align:center;">
                            Some string here                                                    
                        </div>
                    </td>
                </tr>       
            </table>  
  </body>
</html>

Si je supprimer ce: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">, son milieu alignés correctement.

Ce problème est reproductible dans FF et chrome.

Question:

Je fais quelque chose de mal ici?

InformationsquelleAutor Manohar | 2010-04-13