My portfolio page features an image display with zoom functionality. Here is the code I am currently using: http://codepen.io/Mpleandro/pen/LvrqJ
The division that showcases the image has a class called .display
, located on line 13 of the HTML file and CSS formatting for this div can be found on line 90.
Since the image width is flexible, I am looking to make the containing div inherit the width of the image.
I have attempted using CSS properties such as auto
, inherit
, and min-width
, but unfortunately, none of them seem to work!
If anyone could provide me with some assistance on this matter, it would be greatly appreciated.
P.S.: It is important that any solution provided is responsive in nature.
Thank you!