Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sizing images for different resolutions 1

Status
Not open for further replies.

jkalos

IS-IT--Management
Oct 24, 2000
6
US
is there a way to determine the resolution size that someone uses on their computer. i have images (jpeg) of a certain size that i do not want to roll off the screen, is there a way to do this, or do i have to create my images to a standard small size

thanks
 
you can dynamically alter the size of your images using css:

myimageid.style.height=somevalue :IE (not sure about NS)

you can get the screen height/width:

screen.height/screen.width :IE
screen.availHeight/screen.availWidth :NS

but the best way to do it is just make your images small enough or send them to a different (less fancy) page with a notificiation about their resolution jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top