Automatic word separation in case of lack of space.
Default: Photogallery embedded in layout grid and page width 1080.
Active: Light Box Gallery. Type: magnificpopup.
Added 15 images, each with title and label.
Problem in mobile mode (title or label):
Long words don't fit into the virtual frame under the picture.
They cover a part of the text field of the next image.
Question:
Is there a soft hyphen to automatically separate words at a
matching syllable when the width is no longer sufficient?
Example:
(My required best line width.)
This is my too long textexample.
My wished output:
This is my too long text-
example.
The '-' should separate only if the width is not sufficient.
Maybe that's how it works?
This is my too long text-example. ('-' = normally not visible soft hyphen).
Is it possible? Thank you!
Automatic word separation in case of lack of space.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.
Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.
Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
-
mccs
-

- Posts: 20
- Joined: Sun Sep 20, 2020 1:15 pm
- Pablo
- Posts: 24211
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: Automatic word separation in case of lack of space.
Do you have an example?
-
mccs
-

- Posts: 20
- Joined: Sun Sep 20, 2020 1:15 pm
Re: Automatic word separation in case of lack of space.
Example-Link:
https://www.bnarr.de/fotoseite/Galerien ... kunst.html
I'm using Firefox and I'm decreasing the width for Responsive.
https://www.bnarr.de/fotoseite/Galerien ... kunst.html
I'm using Firefox and I'm decreasing the width for Responsive.
- BaconFries
-

- Posts: 6233
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Automatic word separation in case of lack of space.
From my understanding of how this works magnificpopup doesn't have a way to automatically separate words in long text description with a hyphen. To use Hyphenation it needs the like of word-wrap: break-word in the css to achieve this or you will simply have to insert the hyphen yourself.
- crispy68
-

- Posts: 3150
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Automatic word separation in case of lack of space.
Can you be specific on what slide you are seeing issues with? When I click on an image and it appears in the lightbox, I'm not seeing a real issue with the text/title for each. None of the titles are very long and seem to wrap in the lightbox just fine. Are you referring to the text/title below each pic and not in the light box? If so, why not change the number of columns for photogallery from 3 down to 1 at a particular breakpoint? Having 3 columns on a mobile doesn't look good anyway even if the text did wrap correctly.
- crispy68
-

- Posts: 3150
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Automatic word separation in case of lack of space.
If you must keep your photo gallery columns at 3 (which I would urge you not to) and really want the words to 'break' wherever necessary, you can add CSS below between the <head> tags:
Code: Select all
<style>
#PhotoGallery1 .caption{overflow-wrap:anywhere;}
</style>