Jump to content

Centering a Table through CSS


Qualinwraith

Recommended Posts

no, he wants a whole entire table to be centered, not just text :).
table {margin: auto;}

That will work!

I thought it was either:
table {margin-left: auto; margin-right: auto;}

or

table {margin: 0 auto;}

????

Link to comment
Share on other sites

reportingsjr, presumably you dont like IE and prefer firefox, according to your avatar?
You guess right lol :).
I thought it was either:
table {marin-left: auto; margin-right: auto;}

or

table {margin: auto 0;}

????

You could do any of those ways I guess, I just choose mine cause its the quickest :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...