Setting column width in Table View with CSS Editor

Hi,

Have tried different CSS approaches but could not set the column width in the Table Viewer node.

Tried .knime-table and .knime-table-cell classes with table-layout, column-width or width attributes but none worked for me.

:blush:

1 Like

Dear Armin,
Would you please clarify your issue?

1 Like

I want to change column widths in the Table View node by using the CSS Editor node. But I cannot find the right CSS to do that.

As said, I have tried manipulating .knime-table and .knime-table-cell classes by using table-layout, column-width and width attributes, but did not work.

Is it possible to change column width in Table View? Does the inline styling of the header table cause the problem?

:blush:

Finally! I could find the solution here.

This is the CSS to auto fit cells to the content:

.knime-table {
	width:100%;
	white-space: nowrap;
}
.knime-table-cell {
	width:100%;
}

:blush:

7 Likes

Dear @armingrudd
Fantastic!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.