I am currently facing a situation where I have a page displaying an image, but sometimes it appears too small. In order to make the image larger, I have utilized CSS Transform and it is working well.
However, the issue lies in the fact that the parent DIV's size does not adjust accordingly, despite there being ample space for it to expand!
The use of overflow on the parent element does not solve my problem as it either crops the image or adds a scroll bar. What I need is for the parent DIV to grow along with the image.
To better illustrate my point, I have created a simple example here: http://jsfiddle.net/viniciuspaiva/7jJXQ/
When you click on the "Zoom" button, my goal is for the div to enlarge and for the content below to be pushed down. At the same time, I want the page to initially load with the content displayed at the top without any changes. I hope this explanation is clear.
It is worth mentioning that Bootstrap is being used on my page and the zoom button simply applies a class to the image:
javascript:var img = $('img.center'); img.addClass('zoom');
Thank you!