Variable resolution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phrygius

    #1

    Variable resolution


    I am designing a graphically based website. What is the best way t
    handle different resolutions? I know there is a screen.width object.
    I would imagine that I would have to display an image (like
    background image) based on the user's resolution. I guess that this i
    a pretty common issue. Can anyone help me?

    Thanks,
    -Phrygiu

    phrygiu
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message28742.htm

  • Lasse Reichstein Nielsen

    #2
    Re: Variable resolution

    phrygius <phrygius.zl6go @mail.forum4des igners.com> writes:
    [color=blue]
    > I am designing a graphically based website. What is the best way to
    > handle different resolutions?[/color]

    Not base it on graphics? Or scale the graphics to fit the browser,
    most likely using CSS.
    [color=blue]
    > I know there is a screen.width object.[/color]

    That object is completely irreleveant. The screen size has no influence
    on the size of the browser (except as an upper bound, of course).
    If you scale your design, it should scale to the browser size.

    <URL:http://jibbering.com/faq/#FAQ4_9>
    [color=blue]
    > I would imagine that I would have to display an image (like a
    > background image) based on the user's resolution. I guess that this is
    > a pretty common issue. Can anyone help me?[/color]

    The background image is hard, because there is no way to scale them.
    You can try to pick between different images, to find one that fits
    the browser the best, but know that you can't make an exact fit (right
    now, my browser viewport is 940x855).

    Backgrounds shouldn't be too visible anyway, so pick one that looks
    good tiled and stop worrying.

    For the rest, you should just use CSS to scale the elements with
    either percentages or absolute sizes.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Markus Ernst

      #3
      Re: Variable resolution

      "phrygius" <phrygius.zl6go @mail.forum4des igners.com> schrieb im Newsbeitrag
      news:phrygius.z l6go@mail.forum 4designers.com. ..[color=blue]
      >
      > I am designing a graphically based website. What is the best way to
      > handle different resolutions? I know there is a screen.width object.
      > I would imagine that I would have to display an image (like a
      > background image) based on the user's resolution. I guess that this is
      > a pretty common issue. Can anyone help me?[/color]

      As an addition to Lasse's posting I want to point you to the difference of
      paper graphics and HTML/CSS screen graphics. Paper graphic design is always
      based on a defined paper size. HTML/CSS is based on the text flow. There is
      a certain amount of support for paper-like design (if you use
      position:absolu te), but it is very poor and you have to be very careful with
      it as every browser window is different. Imagine you get the width of the
      browser window from Javascript, but the user has turned on the favorites bar
      at the left hand side: you get a totally wrong value for what you want.

      If you want a fixed layout which is scalable to the browser window sizes you
      have to use either Flash or relative sizes in CSS as Lasse pointed out.

      --
      Markus


      Comment

      • Warren Sarle

        #4
        Re: Variable resolution


        In article <phrygius.zl6go @mail.forum4des igners.com>,
        phrygius <phrygius.zl6go @mail.forum4des igners.com> writes:[color=blue]
        >
        > I am designing a graphically based website. What is the best way to
        > handle different resolutions? I know there is a screen.width object.
        > I would imagine that I would have to display an image (like a
        > background image) based on the user's resolution. I guess that this is
        > a pretty common issue. Can anyone help me?[/color]

        It's good that you are addressing this issue. Many web designers
        are too lazy to do so.

        The purpose of my website is to display images. I have three
        entire sets of images (small, medium, and large) generated by
        Photoshop scripts. I use the code in the FAQ that Lasse cited to
        find the current usable window size, then choose the largest
        size among the small, medium, and large sets of images that will
        fit in the current window. But the user is free to choose a
        different size at any time. Giving the user a choice is especially
        important for people with dial-up connections. If Javascript is
        not enabled, the size defaults to small.

        An alternative would be to resize the images dynamically on the
        server, using ImageMagick or some similar graphics package with
        a server-side scripting language. This is very flexible, but some
        sites that do this are painfully slow.

        --

        Warren S. Sarle SAS Institute Inc. The opinions expressed here
        saswss@unx.sas. com SAS Campus Drive are mine and not necessarily
        (919) 677-8000 Cary, NC 27513, USA those of SAS Institute.

        Comment

        • phrygius

          #5
          Re: Variable resolution


          My buddy and I are working on a way to do this. We havent gotten to th
          image part. We just got the page to recognize the resolution of th
          user and display a different background color. This is the start
          needed to try and have a different image shown depending on the user'
          resolution.

          -Phrygiu

          phrygiu
          -----------------------------------------------------------------------
          Posted via http://www.forum4designers.co
          -----------------------------------------------------------------------
          View this thread: http://www.forum4designers.com/message28742.htm

          Comment

          Working...