iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Closed Thread
 
LinkBack Thread Tools
Old June 5th, 2004, 04:31 AM   #1
Reputable Member
 

Join Date: Aug 2003
Location: Singapore
Posts: 318
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 gwx03 will become famous soon enough
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!
gwx03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 5th, 2004, 06:48 AM   #2
Highly Reputable Member
 
benbacardi's Avatar
 

Join Date: Feb 2004
Location: United Kingdom
Age: 21
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbacardi will become famous soon enough
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
benbacardi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 5th, 2004, 07:29 AM   #3
Reputable Member
 

Join Date: Aug 2003
Location: Singapore
Posts: 318
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 gwx03 will become famous soon enough
but the table method works on my old site http://www.gwx.biz/index2.html
gwx03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 5th, 2004, 01:00 PM   #4
Reputable Member
 

Join Date: Aug 2003
Location: Singapore
Posts: 318
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 gwx03 will become famous soon enough
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 )
gwx03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 5th, 2004, 01:52 PM   #5
Highly Reputable Member
 
benbacardi's Avatar
 

Join Date: Feb 2004
Location: United Kingdom
Age: 21
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbacardi will become famous soon enough
where does it work on your old site? the table i see is bigger than the main page anyway...
benbacardi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 5th, 2004, 05:32 PM   #6
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 113 Webforumz Staff is on a distinguished road
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.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old June 5th, 2004, 06:43 PM   #7
Highly Reputable Member
 
benbacardi's Avatar
 

Join Date: Feb 2004
Location: United Kingdom
Age: 21
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbacardi will become famous soon enough
didnt notice the doctype on his old site lol
benbacardi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

Tags
vertical , centering , woes


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vertical centering - please help! mpnuttall HTML, XHTML and CSS 6 April 16th, 2008 08:38 AM
Video woes timmytots Flash and ActionScript 1 February 24th, 2006 07:05 PM
Tip : Vertical and Horizontal Centering - Solved! gwx03 HTML, XHTML and CSS 0 December 15th, 2003 03:11 AM
Vertical Centering in CSS gwx03 HTML, XHTML and CSS 1 December 5th, 2003 12:36 PM


Search Engine Optimization by vBSEO 3.2.0 RC8