I am using a liquid layout on my website, but when I view in in my browser I find that when I change the browser window size, the images are stretched out of proportion. Can anybody help?
migrated from superuser.com Feb 20 '11 at 19:34
|
In your CSS, ensure that for every image, either its For example, if you declare |
|||
|
|
|
You should provide a test link. Anyways your images must have a fixed width and height, and should not change their proportions while changing the window's size. After an excessive window's downsizing, the whole layout would become a mess. But this is something unavoidable as far as i know. |
|||
|
|
|
You could get fancy with javascript and provide multiple images for steps of sizes or downsize intelligently with bicubic sampling and such. You cannot simply resize raster images without epic loss of quality. |
|||
|
|