View Single Post
Old 01-24-2022, 12:07 PM   #2
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 170
Karma: 1497966
Join Date: Jul 2021
Device: N/A
Quote:
Originally Posted by landord01 View Post
Code:
.calibre10 {height: 256px, width: 200px}
Do you mean ?:
Code:
.calibre10 {height: 256px; width: 200px}
(semicolon, not comma).
This should do the job, even if the file has been beautified:
Code:
search:
(height):\s*\d{2,}px;(\s*)(width):\s*\d{2,}px
replace:
max-\1: 100%;\2max-\3: 90%
(select: current file or all style files)
But:
It's probably better to put one of the two dimensions in auto.
Now, e-readers often tend to recognize better width than height. For landscape, it's obvious, width should be 100% . For portrait, it' not that easy, but I think that there is a sigil plugin that can calculate the right width in relation with the real size of the picture.

Last edited by lomkiri; 01-24-2022 at 02:17 PM.
lomkiri is offline   Reply With Quote