Copy Fit not work correctly

Hi,
I’m tring to set copy fit into a div. It work correctly. But if the content is too big then copy fit is disable and the font is set as max font size. Instead I want that when the content is too big the word is truncated and the font stay at min font size.
There is a way to do this?
Thank you

Hello @Giovanni, welcome to our OL Learn community!

It is unfortunately not possible to achieve this in PlanetPress Connect or, at least, not by applying CSS only. I’m not certain if there is an “using JavaScript plus CSS” alternative available but I don’t expect such an alternative to be available.

Can you please explain why you would like to achieve this? Can you share a description of a situation in which you would like to apply this, for example?

Hi Marten
thank you for your answer.
I’ve to insert in a very little space a field. I want that if the smallest font possible is not enough for respect the space the font stay at minimun font possible. Instead Connect set the maximun font possible if the word is too big.

Cattura

Have you tried to not use the copy fit option, set the font size to a minimum and instead set the CSS overflow: hidden?

Hi Hamely,
I’ve need copyfit to make the word with the bigger font possible when there is the space. But I think that what you say is the only way
Thank you for your answer

You could write a script that check the number of character in the word(s) and set the font size accordingly and still use the overflow: hidden.