.whatever {
max-width: [?]px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; /* optional */
}
Truncate a String in CSS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment