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 🙂
Center align articles
Accepted answer
Marked as the solutionYour 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/
wow thats so great!
Thanks a lot
No problem.
2 more replies
Hi
Thanks for contacting us. Could you please check your site? I cant access on that.
-Regards.
https://energie-bilanzierung.de/index.php/produkte/energieeffizienz/energiemessung-stationaer for example
https://www.intechonline.de/index.php/technik/energieeffizienz/energiemessung-stationaer thats how it should look
sorry, I didn´t saw that the link was somehow shortened