Auto resizing

Discussion in 'Javascript' started by DejaUser, Feb 4, 2005.

  1. DejaUser

    DejaUser Guest

    I am using following code to keep the header info. fixed on the screen.
    Below the header, I have a scrollable table. I'd like to know how I
    can auto-reize the height of the <div> element (currently I hard-coded
    it to 425.. but I'd like it to auto-resize depending on the browser
    space available.)

    Thanks

    ----------------------------

    <html>
    <body>
    Some content.. (this content needs to be fixed, i.e. should not scroll
    off the window).

    <div id=statusContent style="overflow: auto; width: 840; height: 425;
    border-left: 1px gray solid; border-bottom: 1px gray solid;
    padding:0px; margin: 0px">

    some content here...

    </div>

    </body>
    </html>
     
    DejaUser, Feb 4, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ernie Sty
    Replies:
    3
    Views:
    449
    Ernie Sty
    Oct 6, 2004
  2. yawnmoth

    auto-resizing applets?

    yawnmoth, Aug 23, 2006, in forum: Java
    Replies:
    1
    Views:
    669
    Oliver Wong
    Aug 28, 2006
  3. linkswanted
    Replies:
    1
    Views:
    926
  4. Pil (Trustworthy from Experience)

    Resizing a div by resizing its borders

    Pil (Trustworthy from Experience), Apr 18, 2009, in forum: Javascript
    Replies:
    9
    Views:
    356
    Proper
    Apr 21, 2009
  5. Proper
    Replies:
    0
    Views:
    201
    Proper
    Apr 18, 2009
Loading...

Share This Page