Making a website adjust width/height in varying resolutions?

Sharky Forums


Results 1 to 5 of 5

Thread: Making a website adjust width/height in varying resolutions?

  1. #1
    Cookiecutter Shark Scuttle's Avatar
    Join Date
    Oct 2000
    Location
    England
    Posts
    7,508

    Question Making a website adjust width/height in varying resolutions?

    How do i get a website to change its dimensions depending on what the users monitor resolution is? So i could have the page fill the browser window from resolutions from 640*480 up to 1280*1024?

    Many thanks.

    ------------------
    When torrents of tears flood down your face,
    When you're feeling low and life's a disgrace,
    Looks back to the good old days of life,
    Before you make the slit with the cold silver knife,
    When life has no meaning and you don't want to stay,
    Remember my friends, it's better to burn out then to fade away...

  2. #2
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    How exactly do you want the web site to "form-fit" these resolutions?

    -Do you want to dynamically resize the browser window?

    or

    -Do you want the content of your page to fill the window regardless of resolution?

    #1 is easily done with some JavaScipt.

    #2 is easily done by using 100% as table widths.

  3. #3
    Cookiecutter Shark Scuttle's Avatar
    Join Date
    Oct 2000
    Location
    England
    Posts
    7,508

    Post

    The latter, i'd like the content of the frame to re-adjust and fill the browser window's size.

    [edit]Woah! I only noticed that you replied as soon as i came into the forums.
    ------------------
    When torrents of tears flood down your face,
    When you're feeling low and life's a disgrace,
    Looks back to the good old days of life,
    Before you make the slit with the cold silver knife,
    When life has no meaning and you don't want to stay,
    Remember my friends, it's better to burn out then to fade away...

    [This message has been edited by Scuttle (edited December 15, 2001).]

  4. #4
    Tiger Shark
    Join Date
    Mar 2001
    Location
    Next door.
    Posts
    546

    Post

    do u mean like:

    <table width="100%" height="100%">?

    this can be done with cells too...and with images:

    <img src="blah.gif" height="10%" width="10%">

    ------------------
    Come to http://defunktfour.com!!!
    BLAH

  5. #5
    Hammerhead Shark e_dawg's Avatar
    Join Date
    Jan 2001
    Location
    Earth, Western Hemisphere, North America, US, UT, SLC
    Posts
    2,628

    Post

    Scuttle, they are correct -- use percentages that add up to 100...

    Lets say I need a navigation bar down the left, some spacing, and two data columns... I'd use something like these percentages:
    18% 2% 40% 40%

    Which makes it expand and shrink with the size of the browser.

Posting Permissions

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