Having spent hours on end sorting out layout issues caused by having
different amount of cells in different rows, I've finally got a
webpage looking as it should. However, when I add an image to a cell,
it messes up a different cell. I have some of the cells set to
definite sizes but that fails to keep them as they should look.
Here's the basic code for my table:
<HTML>
<HEAD>
<TITLE>Table test</TITLE>
<STYLE type="text/css">
body {margin:0;}
</STYLE>
</HEAD>
<BODY>
<TABLE height="100%" width="100%" cellpadding="0" cellspacing="0"
border="1" bordercolor="re d">
<TR>
<TD width="200" height="37" colspan="1">Cel l 1</TD>
<TD width="40" height="84" rowspan="2"
colspan="1">Cel l2</TD>
<TD height="84" rowspan="2" colspan="5" Cell 3</TD>
</TR>
<TR>
<TD height="47">Cel l 4</TD>
</TR>
<TR>
<TD width="200" colspan="1">Cel l 5</TD>
<TD WIDTH="40" COLSPAN="1">Cel l 6</TD>
<TD colspan="3">Cel l 7</TD>
<TD WIDTH="40" COLSPAN="1">Cel l 8</TD>
<TD width="100" colspan="1">Cel l 9</TD>
</TR>
<TR>
<TD height="84" rowspan="2" colspan="5" Cell 10</TD>
<TD width="40" height="84" rowspan="2" colspan="1" Cell
11</TD>
<TD height="51" colspan="1">Cel l 12</TD>
</TR>
<TR>
<TD WIDTH="100" height="33" colspan="1" Cell 13</TD>
</TR>
</TABLE>
</BODY>
</HTML>
This works a treat, but when I come to putting an image in 'cell 3' it
for some reason resizes 'cell 11', which, when they both have
backgrounds in, messes up the site.
Is there a 'NORESIZE' attribute like for forms, or something similar
that will force cells to remain at a particular size or something
along those lines?
Anyone know what I can do?
different amount of cells in different rows, I've finally got a
webpage looking as it should. However, when I add an image to a cell,
it messes up a different cell. I have some of the cells set to
definite sizes but that fails to keep them as they should look.
Here's the basic code for my table:
<HTML>
<HEAD>
<TITLE>Table test</TITLE>
<STYLE type="text/css">
body {margin:0;}
</STYLE>
</HEAD>
<BODY>
<TABLE height="100%" width="100%" cellpadding="0" cellspacing="0"
border="1" bordercolor="re d">
<TR>
<TD width="200" height="37" colspan="1">Cel l 1</TD>
<TD width="40" height="84" rowspan="2"
colspan="1">Cel l2</TD>
<TD height="84" rowspan="2" colspan="5" Cell 3</TD>
</TR>
<TR>
<TD height="47">Cel l 4</TD>
</TR>
<TR>
<TD width="200" colspan="1">Cel l 5</TD>
<TD WIDTH="40" COLSPAN="1">Cel l 6</TD>
<TD colspan="3">Cel l 7</TD>
<TD WIDTH="40" COLSPAN="1">Cel l 8</TD>
<TD width="100" colspan="1">Cel l 9</TD>
</TR>
<TR>
<TD height="84" rowspan="2" colspan="5" Cell 10</TD>
<TD width="40" height="84" rowspan="2" colspan="1" Cell
11</TD>
<TD height="51" colspan="1">Cel l 12</TD>
</TR>
<TR>
<TD WIDTH="100" height="33" colspan="1" Cell 13</TD>
</TR>
</TABLE>
</BODY>
</HTML>
This works a treat, but when I come to putting an image in 'cell 3' it
for some reason resizes 'cell 11', which, when they both have
backgrounds in, messes up the site.
Is there a 'NORESIZE' attribute like for forms, or something similar
that will force cells to remain at a particular size or something
along those lines?
Anyone know what I can do?
Comment