Answers for "css how to make text ellipsis at height of container"

CSS
1

css ellipsis max width

.text-ellipsis{
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
Posted by: Guest on July-02-2020
0

show ellipsis after text length

max-width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
// div in a flex - assign width% , no need of even max-width !
Posted by: Guest on May-06-2021

Code answers related to "css how to make text ellipsis at height of container"

Browse Popular Code Answers by Language