Rich Text for <b>

Hi Experts,
I need to brake text to a new row based on the length of it so that it will fit to my table and the headers stay pretty.
I am guessing I will need to use a rich text component to insert a “< b >” like I did manually in my screenshot.
How do I create a count of letters and insert in where a space should be and not in middle word using a template column?

another solution would be a fixed width for my html table/ i am using this

 table.darkTable {
  border: 2px solid #000000;
  background-color: #4A4A4A;
  width: 100%;
  height: 200px;
  text-align: center;
  border-collapse: collapse;
}
table.darkTable td, table.darkTable th {
  border: 1px solid #4A4A4A;
  padding: 3px 2px;
}
table.darkTable tbody td {
  font-size: 13px;
  color: #E6E6E6;
}
table.darkTable tr:nth-child(even) {
  background: #888888;
}
table.darkTable thead {
  background: #000000;
  border-bottom: 3px solid #000000;
}
table.darkTable thead th {
  font-size: 15px;
  font-weight: bold;
  color: #E6E6E6;
  text-align: center;
  border-left: 2px solid #4A4A4A;
}
table.darkTable thead th:first-child {
  border-left: none;
}

table.darkTable tfoot {
  font-size: 12px;
  font-weight: bold;
  color: #E6E6E6;
  background: #000000;
  background: -moz-linear-gradient(top, #404040 0%, #191919 66%, #000000 100%);
  background: -webkit-linear-gradient(top, #404040 0%, #191919 66%, #000000 100%);
  background: linear-gradient(to bottom, #404040 0%, #191919 66%, #000000 100%);
  border-top: 1px solid #4A4A4A;
}
table.darkTable tfoot td {
  font-size: 12px;
}

Where does my width go so it only effects the last column?

I think this is a case of applying word-wrap or white-space in the right place.

https://www.design-fluide.com/09-12-2018/how-to-break-long-words-in-an-html-or-css-table/

1 Like

Perfect this worked:

<tr>
<td>cell1_1</td>
<td>cell2_1</td>
<td>cell3_1</td>
<td style="width:50%">cell4_1</td>
</tr>

Learning so much from you!

5 Likes

Quick adaption!

1 Like

hi
I’m a new user, I want to ask where do you apply CSS?

I want to implement CSS in my application, but I don’t know where to put it.

In a rich text component

is it here?

can you provide a screenshot?

This is also an option

1 Like