Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: daniel1212
Great images!

If you include just the height keyword or just the width keyword, the other dimension is adjusted automatically to prevent the image from stretching. It's only when I include both the height and the width that it becomes subject to stretching (if I don't make sure my height and width lengths are congruent to the original lengths).

Plus, if I understand correctly how the browser renders the the HTML and style sheets (disclosure: most of my career is back-end data programming, not making front end screens), having just one dimension listed in the img tag helps the browser make automatic adjustments for things like users having various screen sizes, or if the user shrinks or enlarges his browser window, or a phone user turns it sideways. IIRC, the browser can make those kinds of adjustments easier and still have a nice style if we tell it the length of just one dimension and not both dimensions.

17 posted on 12/11/2025 6:33:56 AM PST by Tell It Right (1 Thessalonians 5:21 -- Put everything to the test, hold fast to that which is true.)
[ Post Reply | Private Reply | To 16 | View Replies ]


To: Tell It Right
If you include just the height keyword or just the width keyword, the other dimension is adjusted automatically to prevent the image from stretching. It's only when I include both the height and the width that it becomes subject to stretching (if I don't make sure my height and width lengths are congruent to the original lengths).

Plus, if I understand correctly how the browser renders the the HTML and style sheets (disclosure: most of my career is back-end data programming, not making front end screens), having just one dimension listed in the img tag helps the browser make automatic adjustments for things like users having various screen sizes, or if the user shrinks or enlarges his browser window, or a phone user turns it sideways. IIRC, the browser can make those kinds of adjustments easier and still have a nice style if we tell it the length of just one dimension and not both dimensions.

Aha, mystery solved, Thx.

18 posted on 12/11/2025 10:12:29 AM PST by daniel1212 (Turn 2 the Lord Jesus who saves damned+destitute sinners on His acct, believe, b baptized+follow HIM)
[ Post Reply | Private Reply | To 17 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson