Skip to content

Instantly share code, notes, and snippets.

@kerimdzhanov
Created September 5, 2020 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerimdzhanov/0c61ed45462e6d508786f4c40539cdee to your computer and use it in GitHub Desktop.
Save kerimdzhanov/0c61ed45462e6d508786f4c40539cdee to your computer and use it in GitHub Desktop.
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
td.ellipsis {
position: relative;
white-space: initial;
overflow: initial;
text-overflow: initial;
&::before {
content: " ";
visibility: hidden;
}
> span,
> a {
position: absolute;
left: 0;
right: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment