Quote:
Originally Posted by Notjohn
Thank you for that! I've always put the width instruction inline, but I am tempted to do it your way in the future, just so I can have a style entitled whatever, tee hee.
Does min-width also work in a situation like that? Say width:30%; min-width:130px?
|
Yes, min-width works. I use that in cases such as a chapter head image or chapter division fleur. I'll use:
.whatever {width:15%; min-width:30px; max-width:120px}
to ensure the image is not too small that you can't see it, or too large that it gets all blurry, otherwise it is 15% of the screen (container) width.
Caveat: I use Sigil and Calibre to edit, and Marvin to read. I can't speak to supportability with other devices...but the html/css is sound.