Modals

Gallery issue

9 months 2 weeks ago #78291

Jordan Weinstein's Avatar Jordan Weinstein

I have a gallery set to open using the following:

<p>{modal gallery="images/sprint/2" class="blogFig"}</p>
<div class="imgWrap"><img src="images/sprint/2/1.png" alt="1" width="600" height="440" style="margin: 0px 0px 10px 10px; float: right;" />{/modal}</div>

There are two images in the folder "2": 1.png and 2.png

Yet, in my modal gallery, 3 images appear, two are duplicates:

Confidential information:
(hidden)


Can you assist in help in eliminating the duplicate?

9 months 2 weeks ago #78302

Peter van Westen's Avatar Peter van Westen Admin

This is probably because you are placing the image inside the tags too.
Try:

<div class="imgWrap">{modal gallery="images/sprint/2" class="blogFig"}{/modal}</div>
In your css, do:
.imgWrap img {
   margin: 0 0 10px 10px;
   float: right;
}