Click to See Complete Forum and Search --> : Table inside a DIV - too wide


mchernecki
06-05-2006, 04:42 PM
Not sure if I posted this to the correct forum, but I didn't want to cross post.
I have a table inside my main content DIV, but it seems to be stretching too far to the right, requiring scroll bars to read the right column contents. I have tried playing with the table/column width percents, but can't get it looking right for all screen sizes. The client wants this to look best in 800*600 resolution and still look good in higher resolutions. Everything I have tried either word wraps the 1st name column or right scrolls to see the 2nd details column. This site is ready to go live, accept for this issue. Any help / suggestions would be appreciated.
Problem exists on these 2 pages, only these two use the table inside a DIV.
http://www.adapsys.ca/test/aboutOicr_Board.htm
http://www.adapsys.ca/test/aboutOicr_Scientific.htm

Thanks
Mike

ray326
06-05-2006, 09:10 PM
Start by putting a valid doctype on it. It looks ok in Firefox.

mchernecki
06-05-2006, 10:13 PM
I put the doctype back in, doesn't make any difference. This problem occurs in Windows IE6. works great in Safari and Firefox.

http://www.adapsys.ca/test/aboutOicr_Board2.htm has doctype included

http://www.adapsys.ca/test/aboutOicr_Board.htm has no doctype

Also, when I put the doctype back in, my image surrounding my search break aprt and looks bad, havn't been able to solve that one, other than removing the doctype.

Mike

ray326
06-05-2006, 10:18 PM
I don't see a doctype on either page so I can't comment.

mchernecki
06-05-2006, 10:21 PM
I just added
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> to http://www.adapsys.ca/test/aboutOicr_Board2.htm. View source confirms it on my end.

Mike

tw56
06-05-2006, 10:44 PM
I just checked and it was working. I was going to suggest the % width but looks like you got it.

mchernecki
06-06-2006, 10:35 AM
That fixed it. Thanks ray326