Adjusting a picture to the size of a window

Discussion in 'Javascript' started by Victor Louie, Jun 27, 2003.

  1. Victor Louie

    Victor Louie Guest

    Hi,

    I'm a newbie...I'm having trouble changing the size of an image when I
    use different window sizes when loading the and resizing the browser window.

    If anyone could help it would be appreciated.

    Thanks

    Victor
     
    Victor Louie, Jun 27, 2003
    #1
    1. Advertisements

  2. Victor Louie

    Evertjan. Guest

    Victor Louie wrote on 27 jun 2003 in comp.lang.javascript:
    <body>
    <img src=".." style="width:100%;height:100%;">
    </body>
     
    Evertjan., Jun 27, 2003
    #2
    1. Advertisements

  3. Victor Louie

    Victor Louie Guest

    I'm trying to resize a spacer image on the bottom on the left of my page
    so that that it will stretch to the bottom the page (it's fixed at
    181x119 for now) because I get this:

    http://pector.homelinux.com/main/index2.html

    when the content on the right goes further down that the menu on the left.

    If the left side is longer than the content on the right side...then it
    looks fine (http://pector.homelinux.com/main/)...which is what I'm
    trying to get it to look like

    If there is a better alternative to JavaScript could you let me
    know...b/c I'm pretty sure PHP won't work (b/c I'm a lot better at that :)).

    Hopefully this clears it up...its been a long night.

    Thanks

    Victor
     
    Victor Louie, Jun 27, 2003
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.