I've got a table problem with one of my pages. I'm using % for width & height.
I've divided a table in a few <td>'s. The problem is that when I place text in the two <td>'s that have to contain text, the whole size of the table is messed up.
How can I maintain the fixed size of my table an still use % for sizing?

<div align="justify">
<i><font color="#FFFFFF" face="Verdana" size="1">Ever since he was handed X-MEN
UNLIMITED, associate editor C.B. Cebulski has strived to offer a different
experience to fans of the ever-popular mutants.</font></i>
</div>

<div align="justify">
<font color="#FFFFFF" size="1" face="Verdana"><i>CrossGen Comics is teaming
with libraries around the U.S. to help promote Teen Read Week, October 13-19,
2002. The theme of this year's Teen Read Week is &quot;Get Graphic at your
Library&quot; and focuses on the use of graphic literature as a tool to promote
reading.</i></font>
</div>

<div align="justify">
<i><font face="Verdana" color="#FFFFFF" size="1">
It's been a year since the debut of ALIAS, the flagship title of Marvel's MAX
label, and the buzz is stronger than ever!&nbsp; Writer Brian Michael Bendis...&nbsp;</font></i>
</div>

<div align="justify">
<span lang="EN-GB" style="mso-ansi-language: EN-GB"><i><font face="Verdana" color="#FFFFFF" size="1">In
the Tradition of the Hit Story Origin, Marvel Discloses the Secret History of
One of the World's Most Popular Heroes : Captain America! Truth Exposes a Time
of Racial Segregation and Oppression When an African-American Was Not Allowed
To Carry the Moniker of America!</font></i></span>
</div>

<div align="justify">
<font face="Verdana" size="2"><b><font color="#FFFFFF">After
pulling off a stunt with Batman: The 10-Cent Adventure, DC plans on doing the
same in January 2003 with its flagship hero <a class="par" href="../../Mijn%20documenten/Mijn%20webs/mijnweb/sup10c.htm">Superman</a>.</font></b></font>
</div>

<div align="justify">
&nbsp;
</div>

<div align="justify">
<i><font face="Verdana" color="#FFFFFF" size="1">Following
the immense succes of Batman: The 10-Cent Adventure, DC pulls off another
stunt. No, not Batman, we're talking about their other flagship character
here...&nbsp;</font></i>
</div>

The 'real' problem is that size of the table should be 90%, but when I fix that, my td's are messe up, even when I don't give them a certain width.

comicw

09-28-2002, 12:47 PM

oh yeah: when I don't divide my main td with all the text into 2 td 's (so just one text-element below the previous etc.), then I d on't have the problem.
So basically what I'm looking for is a way to divide the td with all the text into two equal parts with a little space in between.

MCookie

09-28-2002, 01:33 PM

Below is, without content and other distracting stuff, the 4 rows of your table.
I'm afraid it doesn't make sense at all... it's possible to use relative and absolute sizes in one flexible table, but you really have to know what you're doing, you can't just mix pixels and percentages.
When, for instance, in row 2, you say td width="700" colspan="3" what must a browser do when in the next row these three cells are 40, 10 and 40%?
700 pixels or 90%?
Better use relative values everywhere. And, using rowspan and colspan, make sure every row has the same amount of cells.

But I only have to use this with the page I have a problem on? Because I've tested the other pages in all screen resolutions and on different computers and they all looked the way they should (then again, I used percentages mostly there!)

comicw

09-29-2002, 06:11 PM

If I'm correct, it's allowed to have a <td> with width="100%" in a table with width="90%" ?

AlienSkater23

09-29-2002, 11:09 PM

comic to justify what u said i think you can becuase if u set the <td> width to 100% that is setting it to 100% of the 90% that the table is at. im prett ysure about that. if that makes sense

MCookie

09-29-2002, 11:19 PM

>> tested the other pages in all screen resolutions and on different computers and they all looked the way they should

If your other pages look ok, then why not use one of them as a template for this one?

>> If I'm correct, it's allowed to have a <td> with width="100%" in a table with width="90%" ?

Yes. If you have a <TR> with one <TD> in it, you want it to be as wide as the table. 100% of the width of the table.