|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 333
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
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change img or box width for multi-column in calibre viewer | rjwse@aol.com | Calibre | 2 | 12-02-2019 11:48 AM |
| CSS code to increase scroll bar width in E-reader?? | nkormanik | Calibre | 1 | 10-21-2019 12:58 PM |
| Zero-width non joiner vs. zero width space? | Phssthpok | Editor | 3 | 09-06-2015 04:45 AM |
| KF8 max-width HTML CSS tag broken? | ekovv | Kindle Formats | 5 | 09-05-2012 05:57 AM |
| WIDTH and HEIGHT in <img> tags | Pablo | Sigil | 3 | 06-10-2010 06:37 PM |