Advertisement

Center items in Container Topic is solved

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
guy_in_ohio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 119
Joined: Sat Aug 11, 2012 9:44 pm

Center items in Container

Post by guy_in_ohio » Fri Nov 29, 2024 9:44 pm

I'm trying to add padding or a margin to the heading and content in the container.

So it looks more like image 1.

I cleared the container to allow the left menu to be placed on the far left.

https://neilrisko.com/DELETE/products/p ... lters.html

I'm using gantry as well.

Thanks
Screenshot_20241129-162714~3.png
Screenshot_20241129-162604~2.png
You do not have the required permissions to view the files attached to this post.

Advertisement
mtgg
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Thu Apr 04, 2024 11:17 pm

Re: Center items in Container

Post by mtgg » Fri Nov 29, 2024 11:47 pm

Do you want to center the image?

Code: Select all

img.tm-image {
    max-width: auto;
    display: block;
    margin: 0 auto
}
The page has an error loading one of the stylesheets, by the way.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1751
Joined: Tue Jun 30, 2020 12:17 pm

Re: Center items in Container

Post by Pavel-ww » Sat Nov 30, 2024 7:43 am

guy_in_ohio wrote: Fri Nov 29, 2024 9:44 pm I'm using gantry as well.
Hi.

Check the Particle settings, it should be there. Read Gantry documentation.

OR

If such settings do not exist in the interface, then use CSS. To do this, you need to add your own class names in the Particles settings and use them as selectors in your CSS code.
(At least add your class names and then it will be possible to help you with CSS)

Some tips

If you work with the framework-template as Gantry, carefully study its documentation. There are more answers than you find on the forum.

If you do not need complex interfaces and you are good in the CSS use a simple template as Cassiopea

guy_in_ohio
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 119
Joined: Sat Aug 11, 2012 9:44 pm

Re: Center items in Container

Post by guy_in_ohio » Mon Dec 02, 2024 5:47 pm

Centering the image will work for now. Thank you both.

Advertisement

Post Reply

Return to “Joomla! 5.x Coding”