Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
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: 283
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
Reply


Forum Jump

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 10:48 AM
CSS code to increase scroll bar width in E-reader?? nkormanik Calibre 1 10-21-2019 11:58 AM
Zero-width non joiner vs. zero width space? Phssthpok Editor 3 09-06-2015 03:45 AM
KF8 max-width HTML CSS tag broken? ekovv Kindle Formats 5 09-05-2012 04:57 AM
WIDTH and HEIGHT in <img> tags Pablo Sigil 3 06-10-2010 05:37 PM


All times are GMT -4. The time now is 11:46 PM.


MobileRead.com is a privately owned, operated and funded community.