Results 1 to 8 of 8

Thread: help needed:how to fill blank height left after all div end?

  1. #1
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default help needed:how to fill blank height left after all div end?

    http://www.stargatemedia.co.il/abou_tt.htm

    if the content text is not long enough there is white blank space left.
    i cant do repeat-y or put an image since the layout is elastic.

    is there a script that can set the lowest div's height so it will fill the user viewing port?

    or any other solution?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This could work out (from your stylesheet, addition highlighted):

    Code:
    body{height:100%;width:100%;
    background-color: #ec7f14;
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    yeah but i need that both of the color to fill the empty screen left

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    You may have too many </div>s after <object></object>
    ===
    Arie Molendijk.

  5. #5
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    and?
    i want that both the orange and the grey to fill the page to the bottom
    i believe this is possible

  6. #6
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I meant that if you take away two </div>s after the closing object tag, white space between 'Lorum ipsem' and the image above disappears.
    But after looking more closely to the source of the page, I realize that your div's are OK.
    Sorry.
    ===
    Arie.

  7. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I downloaded your site. The problem seems to be gone if you give the body margin: 0.
    ===
    Arie.

  8. #8
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    does not work.
    to clerify what i'm trying to do:
    document.getElementById("row4l").style.height=document.screen.availHeight-660+"px";

    something like this-but my js knowldge is not big so i need help with this..

    if the screen height is more than 900px then there is nothing under the divs and i want to fill that space

Bookmarks

Posting Permissions

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