Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: CSS Layout Help

  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Tulsa, OK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Layout Help

    First off the file I'm working with is www.zduck.com/example.htm

    I need to make the 'treeview' and 'main' DIV's height dynamic, sortof like if I were to use a percentage to determine their height. I tried this but it wasn't consistant. The larget you resized the window, a gap would grow below the DIVs. How can I make the height of 'treeview' and 'main' fill the window? Or can I without using %'s?

  • #2
    New Coder
    Join Date
    Oct 2002
    Location
    UK London
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This sounds a little convoluted - but if you don't want to use percentages then I would find out the availHeight values for the window and set the div's height to that value.

    IE = screen.availHeight;

    NN = window.innerHeight;

    DOM = window.innerHeight;

  • #3
    eak
    eak is offline
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Location
    Nashville, TN
    Posts
    354
    Thanks
    0
    Thanked 26 Times in 26 Posts
    redmeat,
    screen.availHeight will tell you the available height of the users monitor not the window(for ns and ie). to find the height of the window, you need to use document.body.offSetHeight ... or something like that...
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adelaide, South Australia
    Posts
    150
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile eak

    Liked your new window generator matey!
    To escape criticism - do nothing, say nothing, be nothing. . . Vaya Con Dios

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try reloading the page on resize?

    <body onresize="window.location.href = window.location.href;">

  • #6
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    your example page seems to be working fine for me in Moz 1.1. you said you're using % for the size of the divs. are you using % for the position?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

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