Automatically resizing images according to resolution/browser size?

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

    Automatically resizing images according to resolution/browser size?

    Hi All! I hope there's someone that might be able to help me with this...I'm
    a designer, not a developer, so i hope this isn't TOO basic.

    Basically, I have a topbar that's a simple JPG image that I would like to
    put at the top of a web page...is there any way to make that image resize to
    fill up the whole browser window regardless of screen resolution?

    I suppose basically I'm looking for some sort of autoresize script that
    affects images instead of text. Any hints?

    Thanks a billion,

    Nick


  • Perrin

    #2
    Re: Automatically resizing images according to resolution/browser size?

    Try putting this code within <head> </head> in your program.

    <style type="text/css">

    img {
    width: 100%;
    height: 100%;
    z-index: 1;
    }
    </style>


    "Nick D." <raoulduke12@ho tmail.com> wrote in message
    news:vg5ke9angc cv35@corp.super news.com...[color=blue]
    > Hi All! I hope there's someone that might be able to help me with[/color]
    this...I'm[color=blue]
    > a designer, not a developer, so i hope this isn't TOO basic.
    >
    > Basically, I have a topbar that's a simple JPG image that I would like to
    > put at the top of a web page...is there any way to make that image resize[/color]
    to[color=blue]
    > fill up the whole browser window regardless of screen resolution?
    >
    > I suppose basically I'm looking for some sort of autoresize script that
    > affects images instead of text. Any hints?
    >
    > Thanks a billion,
    >
    > Nick
    >
    >[/color]


    Comment

    Working...