3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by ko ko
0

Use auto margin to align center for block-level elements.

table {
        margin: 0 auto;
        width: 90%
          }

Auto margin can only work when the width was set. And you must validate your HTML document. You're designing with table, so you should validate with HTML 4.01. Here is transitional mode:

<!DOCTYPE html PUBLIC "-//W3C DTD HTML 4.01 Transitional//EN" "http:www.w3.org/TR/html4/loose.dtd">

Try this and if you would not get success. please post again.. Good luck .. friend..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.