Site logo

[Resolved] how to justify text into a bloc

Home Forums Support [Resolved] how to justify text into a bloc

Home Forums Support how to justify text into a bloc

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2521996
    Guy

    Hello,

    I have to justify a text in a page.

    First I’ve added this CSS :

    /* Classe CSS pour justifier mon texte dans l’éditeur Gutenberg */
    .nc-justify-text {
    text-align: justify;
    }

    (Desktop : Personnaliser / CSS Additionnel)

    Then on the page where I want my text justified :

    Bloc : the name of the class, nc-justify-text.

    It doesn’t work and I don’t know why.

    Can you help ?

    Regards

    Guy Chiaramella

    #2522045
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site where i can see the block ?

    #2522249
    Guy

    Hi David,

    Here is a link :

    whiteblog.fr

    Merci.

    #2522323
    David
    Staff
    Customer Support

    If you select the Text Block, in Advanced > Additional CSS Classes, can you make sure there is nc-justify-text in there.

    #2522354
    Guy

    I made sure nc-justify-text is in some text blocks of the page but not in all.

    (I couldn’t manage to select the whole container with all paragraphs in it).

    But, for the blocks where the additional CSS is there nothing happens.

    #2522363
    Guy

    Sorry, i had not activated Generateblocks (now i think I could manage to have for a page a container block with text blocks in it).

    I’m going to create a new page and i’ll test it to see what about justifying text.

    #2522384
    Guy

    I have created a new page whose name is “attempt”

    whiteblog.fr/attempt

    Success for each § with the additional class in the corresponding block !

    Thank you.

    I’ll try to apply the class at the whole page : i don’t see how to select the container block.

    Je vais chercher, it’s another topic.`

    Merci beaucoup pour votre aide.

    Guy

    #2523001
    David
    Staff
    Customer Support

    Do you want to Justify ALL Paragraph text on your site ?

    #2524186
    Guy

    Hi David

    Sorry for my slow reply.

    By the way, yes, I would be happy to justify all paragraph test of my site.

    Thanks for telling me how.

    Regards,

    Guy

    #2524333
    David
    Staff
    Customer Support

    Try this CSS:

    .entry-content p {
        text-align: justify;
    }

    it will apply to all paragraphs that are part of your content.

    #2525082
    Guy

    Hi David,

    Thanks a lot,

    It works perfectly well : all paragraphs are and will be justified. Super !

    Regards,

    Guy

    #2525690
    David
    Staff
    Customer Support

    Glad to be of help!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.