Truncate on the line of a td

Asked

Viewed 23 times

0

Good morning, I have a css called truncate, which limits the display of a table column to only one row, I would like to know what I can do to limit it to 2 rows, this method will be used in 2 columns

CSS:

.truncate{
  white-space: nowrap;
  text-overflow:ellipsis;
  overflow: hidden;
  max-width:2px;
  width: 90px;

 }
  • "css method"? It’s confusing, can exemplify what you want?

  • I have a column of a table that displays the name of a School, I want that name to be in 2 lines, and when it is very big stay as follows: 1st line: school maria 2nd line: of graces... and contination in 3 points

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.