Forum Moderators: open

Message Too Old, No Replies

Table issue is messing with me

one TD tag is not working right, while the others are fine

         

slepster

2:33 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



I have a table that is managing the design of a page instead of CSS and the table width is set to 100%. Firefox renders the table perfectly, but IE6 does not. All but the 4th TD tag works fine. This rogue column ends up stretching the length of the entire table instead of the fixed 550 pixels width I set it to. Here's the code:

<tr>
<td width="550" valign="top" bgcolor="#333333">
<p align="center" class="style1">&nbsp;<br />
Karl Jones<br />
<a href="mailto:&#107;&#097;&#114;&#108;&#064;&#098;&#117;&#102;
&#102;&#099;&#111;&#101;&#110;&#103;&#046;&#099;&#111;&#109;">
karl@example.com</a></p>
<p align="center" class="style1">1111 Main Street<br />
Anywhere, ST 99999</p>
<p align="center" class="style1">phone: 555-555-5555<br />
fax: 555-555-5556<br />
&nbsp;</p></td>
</tr>

here's the style tag for these paragraphs:

.style1 {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
}

Thanks for the help as I need to get this page up ASAP.

[edited by: tedster at 9:27 pm (utc) on Sep. 24, 2008]
[edit reason] make details anonymous & stop side scroll [/edit]

dreamcatcher

6:08 pm on Sep 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried setting the 550 as a percentage based width?

dc

Demaestro

6:16 pm on Sep 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Also you aren't defining 550 of unit? 550px?

sonjay

9:18 pm on Sep 24, 2008 (gmt 0)

10+ Year Member



How many cells across is the table? How many rows? Do you have any rowspans or colspans? Are widths set in any other cells? And why aren't you using css instead of deprecated code for this: width="550" valign="top" bgcolor="#333333"