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.

ZT2 Masonry question

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

Is there a way to set ZT2 Masonry such that it uses various color for each of the blocks?
similar to this:

www.drbonniegoldstein.com/whats-new/
  • Virginia Garnitz's Avatar
  • Virginia Garnitz
  • 12 Month Developer
  • 141 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi

hmm interesting - would it matter what colour applied to a certain block?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I'd like to be able to assign colors if possible, or have a predefined set of colors.
  • Virginia Garnitz's Avatar
  • Virginia Garnitz
  • 12 Month Developer
  • 141 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Right so I would try something along the lines of this

nthmaster.com/

using css to target certain nth childs with background colours or

try targetting specific masonry items

.zt-boxed .zt-item-container {transparent}
.js-masonry .zt-item.zt-item-1 {background-color: #298EB2;}
.js-masonry .zt-item.zt-item-2 {background:red}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
where should I put that bit of code?

If there are more than the number of defined children, will the system know to circle back around and continue applying the style?
  • Virginia Garnitz's Avatar
  • Virginia Garnitz
  • 12 Month Developer
  • 141 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Using nth child would give you an automated option - regarding cycling back not as such but you could control the colours

while the second would be a manual addition to the custom css file

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