Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,
How to create web page support in all browser and resolution ?,i have image in pixel 230px,and in design i give 18% width for that image,if i run(1440X900) it correctly fix,but if run in higher resolution(1600X900) the width is 18% but that image 230px is not fix on that width .

pls reply me how stretch that image within that width,if i use repeat the image is repeat from first,image is used in background of table
.

Thanx
Aravind
Posted
Comments
Sergey Alexandrovich Kryukov 29-May-13 2:26am    
By the way, this is not called "resolution". Resolution is not really applied to bitmap, even if it is specified in the metadata. This is rather the lines per inch.
—SA

Please, never stretch images and don't even down-size them too much. Quick re-sampling quality is satisfactory only if you down-size images or scale it up, but just a tiny bit up.

Now, you can choose some different approaches: you can have and store few copies of the same images pre-scaled to different sizes (start with the biggest image!), or you can have just one biggest image on server size and scale it down dynamically on the service side, but it depends on what do you have for server-side technology, so I won't give you any further detail on server-side programming of graphics. Usually, this is quite simple thing.

Finally, you can consider having only one size. You file could be of the biggest size. Why is this possible? Because modern browsers all have embedded zoom capability, so you can rely on it. This feature does not give you the best quality in the worlds, but it can be good enough for your purpose.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900