Chaos Project

General => Electronic and Computer Section => Programming / Scripting / Web => Topic started by: Jek on March 21, 2010, 03:25:48 pm

Title: Tables dont squish?
Post by: Jek on March 21, 2010, 03:25:48 pm
In my website, GameCraft (http://gamecraft.ucoz.org), I have a small issue. When you restore down the browser size, it squishes the two tables showing my affiliates marquee and my Random Monster Generator(tm).
Is there a way to keep them from going smaller when you size down the browser?
Title: Re: Tables dont squish?
Post by: Aqua on March 21, 2010, 03:46:24 pm
It squishes because of the empty space around those cells.

I think...
Didn't really play around with it too much XP
Title: Re: Tables dont squish?
Post by: Blizzard on March 21, 2010, 04:08:05 pm
Don't use relative table width (as in 80%, 100% or something like that), but use absolute width (as in 400px, 500px, etc.).
Title: Re: Tables dont squish?
Post by: Aqua on March 21, 2010, 04:32:53 pm
That's what I was going to say first, but I don't think he does...

Unless width="200" means it's relative o.o
Title: Re: Tables dont squish?
Post by: Blizzard on March 21, 2010, 04:36:45 pm
It doesn't have to be the PHP or HTML. It could be in the CSS.
Title: Re: Tables dont squish?
Post by: Jek on March 21, 2010, 04:37:38 pm
 <td background="http://gamecraft.ucoz.org/RMG.jpg" width="205">
That would be the HTML im using for the Random Monster Generator cell.
Title: Re: Tables dont squish?
Post by: Blizzard on March 21, 2010, 04:40:20 pm
You need to edit the CSS for td or for table.
Title: Re: Tables dont squish?
Post by: fugibo on March 21, 2010, 07:21:11 pm
No offense, but there's really no reason to be using tables when CSS is easier and simpler.