WebSite X5Help Center

 
P. S
P. S
User

Scaling Text  en

Autor: P. S
Visitado 290, Seguidores 1, Compartilhado 0  

Hello,

How do i scale text? If i add a text object on a complete row, then add a large single word text (Say >50px), when i view at mobile size (320) the text word will be cropped.

How can i make the text reduce in font size as the resolution decreases?


Thanks

Publicado em
4 RESPOSTAS - 3 ÚTEIS - 1 CORRIGIR
Paul M.
Paul M.
Moderator
Usuário do mês EN

Hello P.S.,

As far as I am aware this can't be done natively within WebSite X5.

However, you could do it using HTML/CSS which could be inserted (for example) using either the HTML Object, or the 'Enable HTML Code' feature within the Text Object.

Enable HTML Code

With this command, you can enter HTML code directly in the text page. When working in HTML mode, the < and > characters are not interpreted as "less than" and "greater than", but instead anything that is between them is interpreted as an HTML tag.

See this article for instructions on how to form the code required:

https://www.w3schools.com/howto/howto_css_responsive_text.asp

Kind regards,

Paul

Search the WebSite X5 Help Center

Ler mais
Publicado em de Paul M.
Esahc ..
Esahc ..
Moderator

P.S

You may be able to make use of the title object (instead of text object) to place your text. This is responsive (scales automatically)

Ler mais
Publicado em de Esahc ..
P. S
P. S
User
Autor

Hello Esahc..

Thank you for this - simple method and does just what i needed.

Although, if the text in a text object can be made responsive by adding some code (as suggested by others), it's a shame the above setting could be applied to all text objects.

Thanks

PS

Ler mais
Publicado em de P. S