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.

Zentools2 Center Last Row Masonry

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

I asked this same question of Zentools 1,

Is it possible to center in the row the last X number of items that are in the query.

So that if there are 6 items across and 14 items total in the query that the last 2 items, which are in the third row, would be centered in the last row.

Thanks

ps. this is what we did in Zentools1 but I can't find anything to apply these to that will work.

#zentoolslist235 .grid_four.element:last-child {
margin: 0 auto;
text-align: center;
width: 100%;
}

Here is my test, I'm referring to the logos at the top of the page. They are being pulled from a folder. 181.224.155.75/~sandbox/requiem/
  • B Smith's Avatar
  • B Smith
  • 12 Month basic
  • 397 posts
  • 2 Thanks
  • Karma: 0
The administrator has disabled public write access.
Hi B,

I'ts not particularly easy to do that with masonry. Masonry adds absolute positioning to an item so it takes it out of the normal flow of the box layout.

If using the standard grid layout you can target items directly with their number:

eg .zt-item-15,.zt-item-16 {float:none;width:200px;margin:0 auto}

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
ewww, should I go back to Zen Tools one?

I'm going to have 20 separate module instances each pulling from a different folder of logos (this might actually end up as content with Link A). At times there might be addition or removal of logo from the a specific set. So targeting a specific item will be difficult. No way to global center everything.


Bottom line is I know I will be asked to center the last row of logos. I don't care if it's masonry or grid.
  • B Smith's Avatar
  • B Smith
  • 12 Month basic
  • 397 posts
  • 2 Thanks
  • Karma: 0
The administrator has disabled public write access.
Can you try the grid and then post back so we can have a look

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I've switched it to grid. I tried a couple of things on the wrapper div to center but no luck.

Also, I noticed that if I do more than 6 columns it won't do what I tell it. If I set it 8 columns it goes to 4.

181.224.155.75/~sandbox/requiem/
  • B Smith's Avatar
  • B Smith
  • 12 Month basic
  • 397 posts
  • 2 Thanks
  • Karma: 0
The administrator has disabled public write access.
Hi B,
The grid in zt2 works differently actually.

Check out the paragraph here regarding max columns:

zentools2.joomlabamboo.com/zentools-layout-styles/grid

Given that I don't think it will be possible to center the last row as that is always changing.

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Sorry I didn't pick up on that before.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

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

Happy Campers