css text line ellipsis code example
Example 1: css ellipsis
div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Example 2: css text strike
h2 {
text-decoration: line-through;
}
div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
h2 {
text-decoration: line-through;
}