Archived topic
how to justify text into a bloc
11 replies · Started by Guy on February 5, 2023
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
Hi there,
can you share a link to your site where i can see the block ?
If you select the Text Block, in Advanced > Additional CSS Classes, can you make sure there is nc-justify-text in there.
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.
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.
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
Do you want to Justify ALL Paragraph text on your site ?
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
Try this CSS:
.entry-content p {
text-align: justify;
}
it will apply to all paragraphs that are part of your content.
Hi David,
Thanks a lot,
It works perfectly well : all paragraphs are and will be justified. Super !
Regards,
Guy
Glad to be of help!