Alinear una tabla en XHTML 1.0 Strict

Estaba validando una web que estoy haciendo en XHTML 1.0 Strict, tal como recomiendan el estandar de W3C, pero resulta que no habia manera de centra una tabla en medio de la pantalla. Los dos metodos que conocia <center> <table> </table> </center> y <table align=”center”> </table> no funcionan, ya que en el modo Strict estan prohibidos, asi que googleando un poco encontre este post de debin.net y la mejor solucion para que funcione en MSIE y demas es usar css poniendo: table { margin-left:auto; margin-right:auto; text-align: center; } y se alinea bien.

2 comments so far

ole!
muchas gracias….!

wiki
February 26th, 2008 at 18:26

Your blog is interesting!

Keep up the good work!

[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.

AlexM
August 17th, 2008 at 10:41

Leave a Comment

Name (required)

Mail (will not be published) (required)

Website

Comment

Powered by WP Hashcash