Just to add, I’ve just used exactly this method on a text element, but had to go one child deeper since there’s a sub-div that actually contains the text.

In case anybody else runs into this issue, it’s a small adjustment to select any child div:

#my-text-element div {
	white-space: nowrap !important;
	text-overflow: ellipsis !important;
	overflow: hidden !important;
}
1 Like