Tagged: word wrap
-
AuthorPosts
-
May 31, 2022 at 9:04 pm #1353624
Hi,
Unfortunately there is something wrong with the word-wrap on my website. (Zeilenumbruch) Long words are not splittet they just interfere into another space:
Is there a way I can change this? On all my pages?
Thank you very much,
Best,
VeronikaJune 1, 2022 at 4:46 am #1353656Hey Veronika,
Thank you for the inquiry.
Adding this css code should break the text by characters instead of words.
#top h1 a, #top h2 a, #top h3 a, #top h4 a, #top h5 a, #top h6 a { word-break: break-all; }
Best regards,
IsmaelJune 1, 2022 at 12:17 pm #1353726Hi,
I added the code to the child theme and to the custom css. Unfortunately it looks like this now:June 2, 2022 at 4:22 am #1353839Hi Veloryana,
Try to change break-all to break-word, the code should look like this:
#top h1 a, #top h2 a, #top h3 a, #top h4 a, #top h5 a, #top h6 a { word-break: break-word; }
Best regards,
NikkoJuly 4, 2022 at 6:29 pm #1357236Hi Nikko,
it is still not working correctly. The splitting is now working with single letters but it ist not grammatically correct. Is there a way to adjust that?
Thank you
Best,
VeronikaJuly 6, 2022 at 4:31 am #1357348Hi,
Thank you for the update.
You can also adjust the font size on smaller screens. Please try this css code.
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ .html_modern-blog #top .post-entry .post-title, .html_modern-blog .avia-content-slider .slide-entry-title { font-size: 1em; letter-spacing: 1px; word-break: break-word; } }
Default font-size value is 2em.
Best regards,
IsmaelJuly 6, 2022 at 11:13 pm #1357466Hi Ismael,
unfortunately nothing changed after adding the CSS code.
Do you have any recommendations?
Best,
VeronikaJuly 7, 2022 at 4:42 pm #1357577Hi Veronika,
The code is working properly on mobile.
Try adding this CSS code as well to adjust on tablet/ipad:@media only screen and (min-width:768px) and (max-width:980px) { .html_modern-blog #top #wrap_all .post-entry .post-title, .html_modern-blog #top #wrap_all .avia-content-slider .slide-entry-title { font-size: 16px; } }
Hope it helps.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.