Results 1 to 2 of 2

Thread: Resize images according to screen resolution

  1. #1
    Join Date
    Jul 2011

    Resize images according to screen resolution

    Hi All!
    I have a web application with an asp:panel, users can add images, the program automatically make the thumbnail. when user click on thumbnail they can see a pop up modal page.

    Images are in different sizes, so what I need to achieve is to get the screen resolution or browser visible area and re-size the image according to this resolution. (users could have different type of computer screen with different resolution), I need a JavaScript or jquery code.

    Thanks in advance
    Last edited by Kor; 07-06-2011 at 08:22 AM. Reason: disabled smilies

  2. #2
    Join Date
    Sep 2008
    Akron, OH
    You can always use percentages.

    img {width: 98%;}

    That would ensure the image always fits.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles