-
AuthorPosts
-
May 1, 2024 at 6:23 pm #1441624
When lists content wrap the words do not hyphenate automatically so it appears as if the following lines are not aligned with 1st line.
May 1, 2024 at 7:29 pm #1441629lists in text Element – or lists from advanced layout builder element ?
Can you show an example page?May 1, 2024 at 7:33 pm #1441630This reply has been marked as private.May 2, 2024 at 6:22 am #1441765Hi,
Thank you for the inquiry.
Are you trying to add a hyphen to the last word when the sentence breaks to the second line or overflows? There is no default option for this, but you can set the element to break by word instead of characters.
#main li { word-break: break-word; }
If this is not what you’re after, please provide a screenshot using platforms like Savvyify, Imgur or Dropbox. Here are the steps to follow:
1.) Visit the website of your chosen platform, such as Savvyify, Imgur or Dropbox.
2.) Locate the option to upload a file or an image.
3.) Select the screenshot file from your computer or device and upload it to the platform.
4.) After the upload is complete, you will be provided with a shareable link or an embed code.
5.) Copy the link or code and include it in your message or response to provide us with the screenshot.Thank you for taking the time to share the screenshot. It will help us better understand the issue you’re facing and provide appropriate assistance.
Best regards,
IsmaelMay 2, 2024 at 7:33 am #1441794hyphens: auto will break words with a dash : Link
see on “can i use” the support for hyphens auto: https://caniuse.com/mdn-css_properties_hyphens_autoyou can use ismaels css in combination with hyphens
#main li { word-wrap: break-word; overflow-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
May 2, 2024 at 7:57 am #1441797May 2, 2024 at 10:14 pm #1441995hi @ismael : this is one of the interesting trends of the last time
that pseudo element :hashttps://css-tricks.com/the-power-of-has-in-css/
the first selector that belongs to a parent if a child is present. More and more browser will support it.
and it’s finally time for that. You had to laboriously toggle classes on the parent element via script to get a selector that then takes effect.- This reply was modified 6 months, 3 weeks ago by Guenni007.
May 3, 2024 at 5:03 am #1442033 -
AuthorPosts
- You must be logged in to reply to this topic.