Skip to main content
Inspiring
July 24, 2020
Question

What prohibits cells from stretching to certain width in tables?

  • July 24, 2020
  • 2 replies
  • 1057 views

I have been using Dreamweaver for many years. I'm cerainly not new to creating tables in html.

 

Yet, there are times, when I have a table with many cells that contain columns and rows, I am not able to stretch the colum to a certain size due to other columns and rows. Why is that?

 

I can only guess it's because I have nested the table within a table, or another cell's width within the table prevents me from doing so.

 

Should I stop using the curser to shape the tables cell columns and rely on the html code itself? Would that solve the ssue?

 

I would like to hear back from others on this issue.

This topic has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
July 24, 2020

Tables are really only used for tabular data like spreadsheets and charts.  Beyond that, I can't think of a single use case where tables are beneficial -- not even for forms & HTML e-mails.  These days, people need responsive layouts that work well on all devices.  Tables don't fit that bill.  Modern layouts are made with CSS flexbox and grids, not tables.

 

Nancy O'Shea— Product User & Community Expert
Legend
July 24, 2020

'Beyond that, I can't think of a single use case where tables are beneficial -- not even for forms & HTML e-mails'.

 

Believe it or not using tables to build html emails IS still the only safe, reliable way. Construct your tables correctly and they will be responsive on smaller devices. For html emails youre hardly likely to want to present the information in more than a couple of simple table columns, which can easily be rendered as one column for smaller devices.

 

I can't think of any decent youtube video that recommends using <divs> for html email, even litmus a testing platform recommend using tables to support a wider variety of email clients.

Nancy OShea
Community Expert
Community Expert
July 24, 2020

Every e-mail service supports <div> tags.  The only e-mail client that still requires tables is MS Word/Outlook. 

 

 

Nancy O'Shea— Product User & Community Expert
Legend
July 24, 2020

Tables have always been goofy with their col and row spans. That's why unless you are creating an html email or very simple data table, for laying out information, you should now NOT be using them.

 

A lot of the stretching and mishappen issues relating to table were as a result of NOT using simple nested tables. A lot of issues also resulted from delaring explicit table/cell widths, which never added up correctly. It was very easy to end up with an unmanagable mangeld mess, especailly if you are or was using an inteface to pull and drag table/cell handles around.

 

Short answer is beyond producing email templates or simple data tables, then tables should not be used.