javascript - Increase size of parent div as image gets bigger -


my situation following: have page shows image it's small, need bigger. used css transform , works fine.

the problem parent div's size not increase, , there space in page so!

using overflow on parent not me because crops image or add scroll bar. need grow.

so, managed replicate little talking here: http://jsfiddle.net/viniciuspaiva/7jjxq/

when click in "zoom" button, want div grow , pager below down. want page load is, pager on top. hope it's clear.

as can see, use bootstrap on page. , zoom button adds class image:

javascript:var img = $('img.center'); img.addclass('zoom'); 

thanks!

try doing other way. have image fit div, , resize div instead.

add style image (assuming .myimg class).

.myimg {   display: block;   width: 100%; } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -