miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.7k stars 299 forks source link

Add another div #172

Closed MauricioCr closed 8 years ago

MauricioCr commented 8 years ago

How do I add another div?

<a href="imageurl.jpg">
    <div class="other">
       Other DIV
    </div>
    <img src="thumbnailurl.jpg" />
    <div class="caption">
        I'm <span style="color:red">a</span> <strong>custom</strong> caption!
        <div>I'm a div</div>
    </div>
</a>

Thanks!

MauricioCr commented 8 years ago

I found the solution:

<a href="imageurl.jpg">
    <div style="position:absolute;z-index:1;">
       Other DIV
    </div>
    <img src="thumbnailurl.jpg" />
    <div class="caption">
        I'm <span style="color:red">a</span> <strong>custom</strong> caption!
        <div>I'm a div</div>
    </div>
</a>