Page 1 of 1

[SOLVED] Table size

Posted: Tue Jun 14, 2005 3:52 pm
by Sphen001
Hi,

I've got four tables in a row on my site, but they are all different sizes. Each table has the tag;

Code: Select all

<table class=&quote;tablebg&quote; width=&quote;90%&quote; align=&quote;center&quote; border=&quote;0&quote; cellspacing=&quote;1&quote; cellpadding=&quote;1&quote;>
However, no matter what I do, they aren't the same size. The URL of this page is:
http://phpgamedev.sourceforge.net/docs/db_readme.php

I would be grateful for any and all advice.

Thanks

Sphen001

Posted: Tue Jun 14, 2005 4:10 pm
by Skara
I've got four tables in a row...
erhm... column. :P

They're all the same for me in both Firefox and IE. If you really have problems, though, just put them all in one big table that's 90% wide, then make each of those tables 100%.

Posted: Tue Jun 14, 2005 4:15 pm
by Sphen001
Sorry. By row, I meant column.

I had thought of using a big table, but I'm trying to get away from using tables for layout, using CSS instead, for accessibility.

Thanks anyway though.

Sphen001

EDIT: It only happens on certain resolutions. It works fine on 1152 * 864, but on 800 * 600 it doesn't work.

Thanks for any info.

Posted: Tue Jun 14, 2005 4:29 pm
by Skara
aha... *moves it around* Yeah, I notice the difference. The problem is, some of the tables are reaching their minimum width. Either use divs instead of tables, or use one big div at 90% and the tables at 100%. I think that second one will work. ;)

Posted: Tue Jun 14, 2005 5:09 pm
by Sphen001
Hi,

Thanks for the advice. I've never used Div's, though I've heard a lot about them.

I'll give it a go.

Thanks for your help :D

Sphen001

Posted: Tue Jun 14, 2005 5:13 pm
by Chris Corbyn
Sphen001 wrote:Hi,

Thanks for the advice. I've never used Div's, though I've heard a lot about them.

I'll give it a go.

Thanks for your help :D

Sphen001
Easy peasy mate! :P

Try to get into the habit of using them as much as possible. They're just boxes at the end of the day ;)

Posted: Tue Jun 14, 2005 6:02 pm
by Sphen001
d11wtq wrote:Easy peasy mate! :P
???
d11wtq wrote:Try to get into the habit of using them as much as possible. They're just boxes at the end of the day ;)
Good to know :D

Sphen001