Qualinwraith Posted September 15, 2006 Share Posted September 15, 2006 I have a homepage called homt.html that is referring to a cascading style sheet file called styles.css. I want to make it so that every table is center aligned and I cannot seem to manage to do this through css. Can anybody help? Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 15, 2006 Share Posted September 15, 2006 td {text-align:center;} I think thats how you do it. Link to comment Share on other sites More sharing options...
reportingsjr Posted September 15, 2006 Share Posted September 15, 2006 no, he wants a whole entire table to be centered, not just text . table {margin: auto;} That will work! Link to comment Share on other sites More sharing options...
Cronthenoob Posted September 15, 2006 Share Posted September 15, 2006 lol, what was I thinking.I've used margin: auto so many times. Link to comment Share on other sites More sharing options...
holmedwa04 Posted September 15, 2006 Share Posted September 15, 2006 reportingsjr, presumably you dont like IE and prefer firefox, according to your avatar? Link to comment Share on other sites More sharing options...
Err Posted September 16, 2006 Share Posted September 16, 2006 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 More sharing options...
reportingsjr Posted September 16, 2006 Share Posted September 16, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now