how to center an addon - Forum | JoomShaper
Solved SP Page Builder

how to center an addon

Asked by cosimo 4 years ago Last activity 4 years ago

Ciao guys, I can't find a way to center a lottie addon, can anyone help me?
In the advanced options, I activated the Custom Positionoption and entered Position absolute 50% but it is not exactly in the middle,
Similarly if I put left and right margins 50%.
https://emmeastudio.sviluppo.host/
thanks

Accepted answer

Marked as the solution
Ofi Khan Staff

Hello cosimo

You can try Pavel's code. Put the CSS to Template Options -> Custom Code -> Custom CSS

Best regards

3 more replies

Pavel

Hi.

Position absolute not need.

Keep left and right margins 50%.

And try this code

.lottie-player {
    transform: translateX(-50%);
}
cosimo Asked this

ok, perfect
thank you

Ofi Khan Staff

You are welcome 😊

Log in to reply.