Center align articles - Forum | JoomShaper
Solved SP Page Builder

Center align articles

Asked by Peter Igel 2 years ago Last activity 2 years ago

I have maybe a simple question for someone who is deeper in the system.
I just want to center the articles on my site.
https://energie-bilanzierung.de/.../insitu-triclamp-sil for example.
On my old page (Joomla 3, thats why I change to a new site with new template), the template did this by itself but now its all left aligned.
Thanks for help 🙂

Accepted answer

Marked as the solution
Spiros Kolovos

Your Page seems to have lots of errors on the styling code.

â–º For example on the correct view, the responsive width of your container class is 1116px and the scaffolding code is read via Bootstrap.

â–º On the "wrong" view one, someone established the width of some elements in a custom.css file as "width:100%", but there is a mixup of the container width code.

custom.css code line 663:

.view-article #sp-main-body > .container {
max-width: 100%;
padding: 0;
}

If you remove (or comment) the above line, then your page will look as it should due to the roll down to bootstrap scaffolding that is already there:

@media (min-width: 1400px)
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
max-width: 1320px;
}
More on Bootstrap here: https://getbootstrap.com/docs/5.0/layout/containers/

Peter Igel Asked this

wow thats so great!
Thanks a lot

Spiros Kolovos

No problem.

2 more replies

Log in to reply.