Table Width question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Table Width question

Post by iknownothing »

Hey Guys,
I've started using CSS and DIV's over tables lately, but a good ol' fashioned Outlook Stationery has insisted I use Tables for it to work correctly. The reason for the post is that I have 3 columns of table cells I want the leftmost one to be left aligned, the rightmost one right aligned, and the middle one to be all of the remaining width, any ideas?

Thanks
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Code: Select all

<table width="100%">
  <td></td>
  <td width="100%"></td>
  <td align="right"></td>
</table>
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

yeah, did that, but Outlook doesnt like it very much, you would think that, if nothing else at least Outlook would be the same as IE...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Columns will go as wide as they need to, unless you specify an exact width. Can you tell the widths for the columns to be a set value?
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

yeah, ive got the 2 outer's set as there exact pixel size, and got the total width set at 100%, but its just weird and unexplainable.. comes up fine in IE...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Post your table markup. Maybe there is something in the code that can be looked at.
Post Reply