Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1418777

    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.

    • This topic was modified 1 year, 2 months ago by tyronere.
    #1418802

    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

    #1418823

    Hi tyronere,

    I’m glad that you were able to find a workaround it.


    @Guenni007
    thanks for helping out :)

    Best regards,
    Nikko

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Text Block Justify Parapraph’ is closed to new replies.