[SOLVED] Table size

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Sphen001
Forum Contributor
Posts: 107
Joined: Thu Mar 10, 2005 12:24 pm
Location: Land of the Beaver

[SOLVED] Table size

Post 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
Last edited by Sphen001 on Tue Jul 12, 2005 9:25 pm, edited 1 time in total.
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post 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%.
Sphen001
Forum Contributor
Posts: 107
Joined: Thu Mar 10, 2005 12:24 pm
Location: Land of the Beaver

Post 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.
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post 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. ;)
Sphen001
Forum Contributor
Posts: 107
Joined: Thu Mar 10, 2005 12:24 pm
Location: Land of the Beaver

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
Sphen001
Forum Contributor
Posts: 107
Joined: Thu Mar 10, 2005 12:24 pm
Location: Land of the Beaver

Post 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
Post Reply