This is a discussion on "vertical centering woes" within the Web Page Design section. This forum, and the thread "vertical centering woes are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
vertical centering woes
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
vertical centering woes
I tried using this centering method, which worked for my previous site www.gwx.biz but now fails to work for my new portal www.gwx.biz/KnowledgeSpace/
I had a table and inside the table tags were <td> tags and inside those tags was a <div> tag which is a ".container" class. My CSS properties are.. .container { position: relative; height: 350px; width: 500px; border: medium dotted #000000; text-align: left; margin: 0px auto; } table { width: 100%; height: 100%; } td { vertical-align: middle; text-align: center; } You can download the website at www.gwx.biz/KnowledgeSpace/sourceCSS.rar Please help me.. I'm at my wits end. I've done a lot of googling but my steps seem right! |
|
|
|
||||
|
the height property does not work with the XHTML 1.0 Transitional doctype, whether in css or in the html... i have found that problem
|
|
|||
|
but the table method works on my old site http://www.gwx.biz/index2.html
|
|
|||
|
Update: Chances are I'll be abandoning this page. Though any help would be appreciated. I'm curious what went wrong. ( and why height works in old site, but not in the newer site )
|
|
||||
|
where does it work on your old site? the table i see is bigger than the main page anyway...
|
|
|||
|
It's the doctype that really affects how well this works. You can have identical code with different doctypes and it will work with one and not with the other.
|
![]() |
| Tags |
| vertical, centering, woes |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vertical centering - please help! | mpnuttall | Web Page Design | 6 | Apr 16th, 2008 11:38 |
| Video woes | timmytots | Flash & Multimedia Forum | 1 | Feb 24th, 2006 22:05 |
| Tip : Vertical and Horizontal Centering - Solved! | gwx03 | Web Page Design | 0 | Dec 15th, 2003 06:11 |
| Vertical Centering in CSS | gwx03 | Web Page Design | 1 | Dec 5th, 2003 15:36 |