0

I have a html template where it has :

table
  thead
    tr
      th
      th
      th
  tbody
    tr
      td
      td
      td

My th, who contains titles of table, have properties: width="180" for the first one and the second one, and width="360" for the third.

I have long texts in the third td tag below tr, but it overflows a lot. How can I handle it, for having my column with a fixed width (360)? I already tried many things that I read from other topics, but nothing worked: position: fixed, overflow: hidden and etc, etc.

Thanks.

Kalamarico
  • 5,466
  • 22
  • 53
  • 70
  • 1
    Possible duplicate of [Fixed Table Cell Width](https://stackoverflow.com/questions/4185814/fixed-table-cell-width) – Doug Jun 26 '19 at 14:59
  • You shouldn't use the `width` attribute - it was deprecated in html4 and is now obsolete in html5: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td (same for th as it is for td) – Pete Jun 26 '19 at 15:51
  • 1
    Hello, welcome to SO. Can you show your code? Also, what is your expected result? Why not to use `overflow`? – Nico Diz Jun 26 '19 at 15:59

0 Answers0