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

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -