View Single Post
Old 09-26-2023, 12:01 PM   #8
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 522
Karma: 8500000
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by Quoth View Post
You either set height and and width to px (never em or rem), or set one to auto and the other to a %
Agreed about setting either height/width to a value and the other to auto, as this maintains aspect ratio.

But, "em" is a perfectly valid way to declare the value, especially for height, if you want the image to scale with user font size changes. For an image that shouldn't change size with font size changes, then px or % would be correct.
nabsltd is offline   Reply With Quote