0

I'm trying to proportinally scale a div together with the image next to it. (so that the image is always 50% width, height is proportinally scaled, and the div needs to behave exactly the same in height and width)

My code example is probably easier to understand: http://codepen.io/anon/pen/myKZJE?editors=110

.actualcomments{
    max-height: calc(100% - 60px);
    overflow: auto;
}

Note that it's a bit more complex than just the above, I also needed to wrap the div three times.

Problem = IE is sometimes doing the calc(), but sometimes ignoring the calc, so the layout is all messed up. Can I have the same effect (div scales together with image) without using the calc() method?

Thanks in advance.

vlovystack
  • 703
  • 3
  • 11
  • 20

0 Answers0