auto expanding images to fit screen resolution script

Discussion in 'Web Design & Coding' started by Alex_is_Axel, May 4, 2003.

  1. Alex_is_Axel

    Alex_is_Axel .:: FTPAlex ::.

    Messages:
    1,156
    Location:
    Cheshire, United Kingdom
    Goodmorning everyone,

    I am underway of upgrading my website and i was wondering how do you auto expanding images to fit so that there isnt any black areas or blank areas for people with bigger screen resolution and so that people with small screen resolution dont have to scroll from left to right to see the screen. I cant really explain it properly i dont think.. but i hope you can get the picture.. I have an example though, NTFS.org does this script, inwhich the whole page expands from when you restore and maximize the IE window. So can anyone help me with what the script is to do this?

    I hope you can understand that.. im sorry its alittle messed up

    Thank you for your help in advance

    Sincerly Alex :rolleyes:
     
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    The tables on NTFS have widths set in percentages, for example width="95%" instead of width="450"
    this means that the size will always be 95% of the browser width.

    What image are you trying to size? Image on a page? image by itself? background image?
     
  3. Alex_is_Axel

    Alex_is_Axel .:: FTPAlex ::.

    Messages:
    1,156
    Location:
    Cheshire, United Kingdom
    Page I want to have this script for

    This is the reason why i want to have this script. Its for images on a page. Can you help at all for me please Speedy_B or anyone else?

    Thank you for your time and help

    Sincerly Alex :cool:
     
  4. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Expanding or contracting images on a page looks like sh*t. This is because the browser only uses a very simple way to resize the images and that they are bitmaps. So I wouldn't recommand it. Instead use tables (like Speedy_B said) and have tiled backgrounds for it.

    There's a ton of graphics on that site btw. You shouldn't have to scroll a whole screen to get to the acctual contents.
     
  5. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Also the <a href="http://www.geocities.com/dj_axel72003/javascript:void(0)"
    should be <a href="javascript:void(0)"
     
  6. Alex_is_Axel

    Alex_is_Axel .:: FTPAlex ::.

    Messages:
    1,156
    Location:
    Cheshire, United Kingdom
    il try out tables.. i dont really have time to do it now but ill keep intouch..

    Thank you for your help Zedric and Speedy_B :cool:

    btw, i like graphics Zedric :p.. lol hehe but that page is only temperary for now so it will all be re-arranged :D