Quote:
Originally Posted by landord01
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.