-BigBadWolf- Posted April 17, 2007 Share Posted April 17, 2007 How do i set the table so it is in the center of the page, i can get it in the center on the top, but cant get it so it is in the middle. Link to comment Share on other sites More sharing options...
zeidhaddadin Posted April 17, 2007 Share Posted April 17, 2007 I usually use margins to set the position of tables inside the page .. But i don't know if there was something to make the table in the center.You can use this:table {margin-top = whatever px;} Link to comment Share on other sites More sharing options...
zeidhaddadin Posted April 17, 2007 Share Posted April 17, 2007 OR read these:http://www.webmasterworld.com/forum83/5777.htmhttp://www.ahfb2000.com/webmaster_help_des...read.php?t=4368 Link to comment Share on other sites More sharing options...
-BigBadWolf- Posted April 17, 2007 Author Share Posted April 17, 2007 Thanks. Link to comment Share on other sites More sharing options...
killay Posted April 18, 2007 Share Posted April 18, 2007 I dont knwoif this works... but cant you use:topmargin="auto" bottommargin="auto" Link to comment Share on other sites More sharing options...
ste Posted April 18, 2007 Share Posted April 18, 2007 nopeprobably best in this sitution to use nested tables. 1 table with 100% width & height and valign="middle" applied to the row & then the other table inside thatjust tested this and it works: <html><head><style type="text/css">table {border: 1px dashed #ccc;}#container {width:100%;height:100%;}</style></head><body><table id="container"><tr valign="middle"><td><table><tr><td>test</td></tr></table></td></tr></table></body></html> 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