Hey,
I’ve used custom HTML styling rules for text elements for over a year, and suddenly they’re not working properly anymore ( certain styling rules are missing on the live site! )
There should be 3 dots (ellipsis) when the text is overflowing a predefined amount of lines (in this example - 1 line).
My simple code (used to work):
$w("#text").html = '<p style="overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;">This line is overflowing</p>';
The html property of Wix text element is limited (I’ve already noticed before the text-overflow does not work).
You can report a bug.
But meanwhile you can use an iframe or custom element for that (I know it less convenient).
Thank you for your response.
I know it’s limited, but these specific parameters were allowed up until now, and for a good reason - they’re text related! I can’t think of a reason why wix wouldn’t allow them. I opened a ticket & I’ll update when I get a response
I assume this never got resolved. Two years later and the desired styling rules are still not available… I guess because Wix came out with the collapsible text box they believed they fulfilled the missing feature… I currently am working on a project where I need to add an inline image to text via html while also adjusting white-space and overflow properties so only 1 line of text is displayed, however the collapsible text box does not have an html property… Guess I will have to stick to using ellipsis in the forums… …