It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

table columns?

table columns?

Postby albertemec on Tue Nov 24, 2009 10:30 pm

Hi all, I'm new to the forum and was hoping I could get some quick help, since I am not a web publishing expert.

I've got a basic table set up with multiple rows but different column widths (i.e. 2 columns in one row, 3 columns in another row, both rows with different column widths). Basically I want each row to span the entire table width. However, it comes out fairly mutated instead :: 1st row becomes 2 filled and 1 empty column, 2nd row becomes 3 columns that are unequally spaced.

In one row,

<table width="100%" border="2" bordercolor=BLACK cellspacing="0" cellpadding="10">

<tr valign="top"><td width="50%" align="center">
SOME BODY TEXT HERE</p></td>
<td width="50%" align="center" bgcolor="#FFFFFF">
SOME BODY TEXT HERE</p></td>
</tr>

Closely following that row, another row with::

<tr valign="top">
<td width="33.3%">SOME BODY TEXT HERE</td>
<td width="33.3%">SOME BODY TEXT HERE</td>
<td width="33.3%">SOME BODY TEXT HERE</td>
</tr>

</table>

What's wrong here?
PS This is for an HTML e-mail marketing campaign, so I do not believe CSS is an option
albertemec
 
Posts: 1
Joined: Tue Nov 24, 2009 10:28 pm

Re: table columns?

Postby Raven12388 on Tue Nov 24, 2009 11:54 pm

here ya go mate its all validated and should work in all browsers the same do your font color in the body of the html like this <body text="#ffffff"> this would be much easier and look better done with divs with tables you have to build them up inside eachother.

<table width="100%" border="2" bgcolor="BLACK" cellspacing="0" cellpadding="10">
<tr>
<td>
<table width="100%" border="2" bgcolor="BLACK" cellspacing="0" cellpadding="10">

<tr>
<td width="50%" align="center">SOME BODY TEXT HERE</td>
<td width="50%" align="center">SOME BODY TEXT HERE</td>
</tr>
</table>

<table width="100%" border="2" bgcolor="BLACK" cellspacing="0" cellpadding="10">
<tr>
<td width="33.3%"align="center">SOME BODY TEXT HERE</td>
<td width="33.3%"align="center">SOME BODY TEXT HERE</td>
<td width="33.3%"align="center">SOME BODY TEXT HERE</td>
</tr>

</table>
</td>
</tr>
</table>
Raven12388
500+ Club
 
Posts: 735
Joined: Sun Apr 06, 2008 9:44 pm
Location: Liverpool, England


Who is online

Users browsing this forum: No registered users and 4 guests