Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
cyman_de
Topic Author
Posts: 8
Joined: 08 Feb 2021, 05:32

wrap long proper names / words in links

30 May 2024, 02:57

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 :-)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: wrap long proper names / words in links

30 May 2024, 22:10

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 ...
 
User avatar
cyman_de
Topic Author
Posts: 8
Joined: 08 Feb 2021, 05:32

Re: wrap long proper names / words in links

03 Jun 2024, 09:21

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/  Everything wraps perfectly in the WYSIWYG editor, but not in the webview.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: wrap long proper names / words in links

03 Jun 2024, 22:54

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":

Code
<a href="https://www.slub-dresden.de/" target="_blank" style="white-space: normal">Saxon State and University Library Dresden (SLUB)</a>
 
User avatar
cyman_de
Topic Author
Posts: 8
Joined: 08 Feb 2021, 05:32

Re: wrap long proper names / words in links

07 Jun 2024, 02:08

Thank you very much, that worked out just fine :-)