Text alignment with long dyn. text addon - Forum | JoomShaper
Solved SP Page Builder

Text alignment with long dyn. text addon

Asked by Thomas Harsch 2 months ago Last activity 2 months ago

Hi,

I built up a index page from a collection. I set up an image and a text to be shown on that index page. I set the alignment for the text to be centered.

When I have long texts and a word-wrap is necessecary, the alignment got broken and it "switches" the text to be aligned to the left.

You can view an example here: https://picsnmore.de/sammlung/buecher (Look at "Sounds mit Basic" or "Commodore 1571 & 1570")

This also happens when I show parts of another collection on a detailed page: https://picsnmore.de/sammlung/vintage-computersysteme/c128 (Click on "Software" to view an example on the entry "Pirates!")

Accepted answer

Marked as the solution
Mehtaz Afsana Borsha Staff

Ok, you can now also add this CSS in your custom.css file

#sppb-addon-f34db8ad-465e-4010-b1c9-a6d13396ba27 .sppb-dynamic-content-text {
    white-space: nowrap !important;
}

3 more replies

Mehtaz Afsana Borsha Staff
2 months ago · edited

Hi,

Thanks for contacting us. You can use this CSS in your custom.css file

#sppb-addon-1d2870e5-59f8-49a5-85e1-691adfd5443d .sppb-dynamic-content-text{
    white-space: nowrap !important;
}

-Regards.

Thomas Harsch Asked this

Hello,

thanks for that code. It works for the Index pages, but not for the Details Page (see the second exampe).

Best wishes.

Mehtaz Afsana Borsha Staff

Hi,

Is this helped?

Thomas Harsch Asked this

TY, work fine for me :-)

Mehtaz Afsana Borsha Staff

Glad to know that and thanks for accepting the answer.

Log in to reply.