# Getting bigger image on click

**URL:** <https://community.hubspot.com/t/getting-bigger-image-on-click/31147>\
**Category:** CMS Development\
**Tags:** design-manager, free, professional\
**Created:** [February 2, 2021, 4:28pm UTC](https://community.hubspot.com/t/getting-bigger-image-on-click/31147 "2021-02-02T16:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dobradovic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dobradovic/32/14727_2.png) [@dobradovic](https://community.hubspot.com/u/dobradovic)\
**Post date:** [February 2, 2021, 4:28pm UTC](https://community.hubspot.com/t/getting-bigger-image-on-click/31147/1 "2021-02-02T16:28:31Z")

</div>

Hello, how can I display bigger image when user click on image? Currently Im displaying in new tab and I want user to stay on my web app when he/she clicked on image.

Any help would be nice, thanks! 🙂

---

<div class="post-metadata">

**Author:** ![Jake\_Lett](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jake_lett/32/45178_2.png) [@Jake\_Lett](https://community.hubspot.com/u/Jake_Lett)\
**Post date:** [February 2, 2021, 9:25pm UTC](https://community.hubspot.com/t/getting-bigger-image-on-click/31147/2 "2021-02-02T21:25:44Z")

</div>

This might be a good solution [https://codepen.io/el2xu/pen/vYNmdPE](https://codepen.io/el2xu/pen/vYNmdPE)

Fancybox is another plugin that is widely used for image galleries.

---

<div class="post-metadata">

**Author:** ![albertsg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/albertsg/32/99473_2.png) [@albertsg](https://community.hubspot.com/u/albertsg)\
**Post date:** [February 4, 2021, 10:04am UTC](https://community.hubspot.com/t/getting-bigger-image-on-click/31147/3 "2021-02-04T10:04:09Z")

</div>

Hello @dobradovic, I think the best solution is to use **modal images** : [https://www.w3schools.com/howto/howto\_css\_modal\_images.asp](https://www.w3schools.com/howto/howto_css_modal_images.asp)  
No need for plugins or anything like that, coding modal images is very simple and effective.
