fixed row height in the table

fixed row height in the table

vivekmd06vivekmd06 Posts: 7Questions: 0Answers: 0
edited March 2013 in DataTables 1.9
Hi,
I wanted a fixed row height. However, each td element contains data which is overflowing, comes to the next line & consequently increases the height of the row. Is there a way to fix the height of the row.
I also tried to insert a div element inside the function & use the foll css:-

table#example tbody td div{
width:160px;
height:28px;
overflow:hidden;
word-wrap:break-word;
}

It did fixed the height & width of the div element inside the td element, but caused a break in the nTd variable & hence also the iRow variable remained undefined. Any workaround would be appreciated.

Thanks for looking.

Replies

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin
    Add also `white-space: nowrap` . Don't know why nTd would break though (or even what nTd is in this case), we'd need a test case showing the problem.

    Allan
  • vivekmd06vivekmd06 Posts: 7Questions: 0Answers: 0
    Thanks Allan, the [code]white-space: nowrap[/code] fixed my problem.
This discussion has been closed.