0

I'm a newbie and I've been trying to figure out how can I get an image popup from a read more button. I've done this:

<p class="p1">
  <a class="btn right ngg-fancybox" href="http://www.travelistamarketing.com/Samples/Santorini_Sample.jpg" rel="999" data-src="http://www.travelistamarketing.com/Samples/Santorini_Sample.jpg" data-thumbnail="http://www.travelistamarketing.com/Samples/Santorini_Sample.jpg">READ MORE</a>
</p>

But it doesn't work properly - the image isn't the correct size. Any suggestions? Thank you!

  • What do you mean with "READ MORE". – Porosh Ahammed Jun 7 '17 at 19:33
  • You need to show some code, are you using JavaScript or CSS? – Nick_O Jun 7 '17 at 20:00
0

If you are using bootstrap then you can try the code bellow:

<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Popup image</button>

<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-body">
            <img src="//placehold.it/1000x600" class="img-responsive">
        </div>
    </div>
  </div>
</div>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.