zurb / twentytwenty

jQuery Plugin to Compare Images
ISC License
1.27k stars 295 forks source link

TwentyTwenty appears to manipulate image heights #110

Closed MCFHTAGENTS closed 5 years ago

MCFHTAGENTS commented 5 years ago

I have created a very simple application of TwentyTwenty (see here for the prototype ignoring the certificate error: https://tagentsbarn.carillon.co.uk/Home/Accommodation

The images are styled as <figure class="hero-img"> <img src="~/images/accomm_ground-floor-bed.jpg"> </figure>

and the TwentyTwenty component as
`

                    <img src="~/images/accomm_mezzanine-bed_2.jpg">
                </div>`

but the problem I have is the TwentyTwenty compoent seems to be reducing the height of the images. How can I prevent it doing this to make them the same size?

Thanks Mark

MCFHTAGENTS commented 5 years ago

Found out this was a min-height style being applied in a different element