Open
Description
I believe every div.image-box
, and every sidebyside
panel-div (class name is in flux, sbspanel
right now) containing an image, has inside it an img
element with
style="width: 100%; height: auto;"
which is how we get an image to fit the width of the containing div (box) while preserving aspect ratio and using only as much height as necessary. One exception is when the sidebyside panel is a PTX figure
, and then there is an intermediate HTML figure
element. So two cases
div.sbspanel
img/style="width: 100%; height: auto;"
div.sbspanel
figure
img/style="width: 100%; height: auto;"
Once we rework sidebyside
and class names settle down, could CSS provide this style information?
Follow-on from #1158