.whatever {
max-width: [?]px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; /* optional */
}
Last active
September 15, 2016 02:06
-
-
Save trey/7abe6aee810d6f8c420d to your computer and use it in GitHub Desktop.
Truncate a String in CSS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment