View Single Post
Old 03-19-2021, 07:41 AM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 331
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
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
rjwse@aol.com is offline   Reply With Quote