Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to display an image with its width to the computer screen width.

Can anyone give me a hint on how to do so?

Thank you.
Posted
Updated 25-Aug-09 10:13am
v2

1 solution

use javascript screen.width / screen.height .

you can set img.width and img.height[thumbs up]

 
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