Resizing HTML images breaks ratio -


The image of the card (bottom right) displays differently in Chrome and Firefox. In Chrome, its proportion is preserved, but the ratio in Firefox is twisted.

I can resize an image continuously, cross-browser (originally what happens to Chrome now)

Ideally you want to avoid allowing the browser to resize the image. Different browsers achieve different levels of quality, which you can get with a dedicated digital image editor (Photoshop, Paint.Net, etc.). Before publishing, it's best to resize it in the desired dimensions, then set the actual height and width clearly in pixels.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -