Page 1 of 1
wrap long proper names / words in links
Posted: 30 May 2024, 02:57
by cyman_de
On one of my pages I link to an external page that has a relatively long name. Unfortunately, the proper name does not break in the web view, but it does in the WYSIWYG editor. Is there a simple solution for this or do I have to create my own CSS class (word-wrap / word-break)?
Thank you in advance for your help :-)
Re: wrap long proper names / words in links
Posted: 30 May 2024, 22:10
by mjau-mjau
Do you have a link or a screenshot? It's not clear what the problem is or how you want to solve it ... Long words can be set to break onto new lines, if they are really longer than the container that they are placed inside ...
Re: wrap long proper names / words in links
Posted: 03 Jun 2024, 09:21
by cyman_de
Yes of course i can give you an example. Here is the incorrect wrap on the example of the library's proper name:
https://simongude.com/concerts_in_the_library/ E
verything wraps perfectly in the WYSIWYG editor, but not in the webview.
Re: wrap long proper names / words in links
Posted: 03 Jun 2024, 22:54
by mjau-mjau
Because X3 links have special styles, by default they don't "wrap" onto multiple lines. Add your link with an inline style
"white-space: normal":
<a href="https://www.slub-dresden.de/" target="_blank" style="white-space: normal">Saxon State and University Library Dresden (SLUB)</a>
Re: wrap long proper names / words in links
Posted: 07 Jun 2024, 02:08
by cyman_de
Thank you very much, that worked out just fine :-)