Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Locke
15,479 PointsQuestion about Masonry jQuery library
Has anyone used Masonry.js before? I have a project I am doing for someone else. The current layout has a grid of square images, culled from the latest posts. What I need to be able to do is insert a div of text into the middle of that.
No matter how many additional posts are added, that block of text needs to remain in the same position. Any ideas or experience with this particular challenge?
5 Answers
Zac Gordon
Treehouse Guest TeacherNot sure that it would work, but maybe you could do a modification of the corner stamp parameter to get it to display based in the middle instead of the side?
http://isotope.metafizzy.co/custom-layout-modes/masonry-corner-stamp.html
John Locke
15,479 PointsHi Zac Gordon , they ended up going in a different direction. I just noticed your reply. I did look at that same example page, and maybe there is a way to get that to work, but I have o idea of how to get there. Thanks for your efforts!
Zac Gordon
Treehouse Guest TeacherHaha, good to hear they resolved the problem. What did you go with?
John Locke
15,479 PointsThe person in charge of the project went with a different design, but if I had to solve the same problem again, it would have to be rewriting some code. I basically would have to insert the header inside the tiles with JavaScript or jQuery. I was actually happy that a different design was introduced.
Zac Gordon
Treehouse Guest TeacherHaha, a welcomed design change, nice :)