Answers for "Restrict in one line in css with dots"

CSS
3

css add dots if text too long

text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Posted by: Guest on April-29-2020
4

overflow dottet

.cut-text { 
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
Posted by: Guest on May-27-2020

Browse Popular Code Answers by Language