SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Centering Table/Div
-
Jan 7, 2004, 21:44 #1
- Join Date
- Oct 2003
- Location
- Vancouver, Canada
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
How to Center (Horz. & Vert.) a Table/Div
Hi, Im making a splash page and would like to preferably use a div (layer with CSS) to center a image in the middle of the screen horizontally and vertically. So no matter the screen size it will always be centered, even if the windows resized.
I can do it using <div align="center"> but that only does it for horizontal, and <table width="100%" height="100%"> doesnt work either (I would put the image inside and do a <TD> align.
Any ideas?Last edited by Thomas_Szafran; Jan 7, 2004 at 22:14.
-
Jan 8, 2004, 00:32 #2
- Join Date
- Jan 2004
- Location
- columbus ohio usa
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
HTML Code:<table width="100%" height="100%"><tr><td> <div align="center"><img src="logo.jpg" width="59" height="59"></div> </td></tr></table>
-
Jan 8, 2004, 01:29 #3
- Join Date
- Oct 2003
- Location
- Vancouver, Canada
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Doesnt work...
Originally Posted by relaxzoolander
-
Jan 8, 2004, 02:48 #4
-
Jan 8, 2004, 02:52 #5
- Join Date
- Oct 2003
- Location
- Vancouver, Canada
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks
Thanks alot, that was extremely helpful. I learned alot in the last couple hours, looked up so many CSS references.
-
Jan 8, 2004, 15:54 #6
- Join Date
- Jan 2004
- Location
- columbus ohio usa
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Thomas_Szafran
i have 6.0.2800 and it works fine.
[the only other update is 6.0 sp1.]
Bookmarks