Hi
Please can someone explain to me how I can justify Text Block text? I don’t want to do it for all, just the chosen ones.
Thanks
UPDATE: Never mind. Worked it out.
give a custom-class to those text-block elements – f.e.: justified-textblock
#top .justified-textblock p {
text-align:justify;
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
/*** new options for hyphens auto with less browser support
-webkit-hyphenate-limit-chars: auto 4;
-ms-hyphenate-limit-chars: auto 4;
hyphenate-limit-chars: auto 4;
****/
}
don’t know if those browser support prefixes are still in use ;)
but! the browser’s Justified Text setting may give unusual results, as it generally does not set any conditional word wrapping (including hyphens).
There was in former times there was Plugin : Hyphenator that can do a better job – but the plugin has been closed as of July 27, 2023
Maybe the plugin: wp-typography is a good alternative
Hi tyronere,
I’m glad that you were able to find a workaround it.
@Guenni007 thanks for helping out :)
Best regards,
Nikko