Archived topic
How to shorten a Paragraph's Colored Background to the length of the Paragraph?
5 replies · Started by Downtown Spanish on July 10, 2020
Hi,
I would like to shorten the extra gray space before and after the phrase "Expande tus Fronteras".
I am using the grey colored background but I only want that colored background to extend the length of the phrase and not the whole length of the picture. Is there something I can do?
Hi there,
Can you link me to the page where the issue can be seen?
The link you provided isn't working.
Hmm it's not easy to do with the block you are using.
Try using this CSS:
p.has-very-dark-gray-background-color {
display: inline-flex;
}
.page-id-31 .wp-block-cover {
text-align: center;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Thanks bud! It worked
No problem :)