css if img aspect-ratio >1/1 width:100%, otherwise width:50%
Because I work with altogether-too-many images in epubs I need to show landscape images full width and portrait images half width. I was looking for a css method of 'pre-testing' the aspect-ratio of images with a logic filter: "if aspect-ratio > 1/1, then width:100%, otherwise width:50%. Would anyone happen to know if this is possible? Best regards, Pop
|