isawnyu / isaw.web

Isaw website buildout

Home Page:http://isaw.nyu.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

captioned images do not resize for narrow browser/mobile widths

paregorios opened this issue · comments

It would appear that CSS modifications like:

span.captioned {
    max-width: 100%;
    max-height: auto;
}

would resolve the problem.

The way the plone theme we're built on top of hard-codes image sizes into the style attribute for captioned images makes this much harder to deal with in css. Plus "auto" is not a legal value of max-height.

I think you want max-height: unset; along with height: auto !important;.

An apparent solution (on the issue419 branch) is in live beta on production.