Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Centerint zentools module in article

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello - I have created a zentools module which I have published into an article via {loadposition... on the home page of

alisonstudio.com

The module displays a list of joomla categories. It's also the only thing in the article. I have tried to center it with the <center tag but it doesn't seem to want to center. Yes I have closed the tag properly. I know I can't put code in this message.

So how do I get that to center on the page?

Thanks.
  • nycps's Avatar
  • nycps
  • LIfetime Developer - Big Bamboo
  • 193 posts
  • 2 Thanks
  • Karma: 0
The administrator has disabled public write access.
Hi

Can you remove center and add a class name instead

center isn't supported as valid html

and we can go from there

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
could you possibly please tell me what that code is?

I can't seem to figure it out. I know i should be simple but my head is full today. :(
  • nycps's Avatar
  • nycps
  • LIfetime Developer - Big Bamboo
  • 193 posts
  • 2 Thanks
  • Karma: 0
The administrator has disabled public write access.
Hi Zim,

I would add some custom.css like this:

.center-module .zentools [grid-col] {float:none;display:inline-block}
.center-module .zentools {text-align:center;float:none}

Then add center-module as the module class to the module class suffix option int he advanced panel for the module.

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
FYI I had to use moduletablecenter-module instead of center-module

and that worked.

Thank you for the speed response guys!!!
  • nycps's Avatar
  • nycps
  • LIfetime Developer - Big Bamboo
  • 193 posts
  • 2 Thanks
  • Karma: 0
The administrator has disabled public write access.
With many module types when adding a module class you need to add a space before the class name

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers