Answers for "how to truncate text using css"

CSS
32

text overflow ellipsis css

div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
Posted by: Guest on May-01-2020
5

truncate text css

.element{

  text-overflow: ellipsis;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}
Posted by: Guest on May-14-2020

Code answers related to "how to truncate text using css"

Browse Popular Code Answers by Language