Welcome to Our Community

Wanting to join the rest of our members? Feel free to sign up today.

Sign Up

Autostretch div height

Discussion in 'Web Design Forum' started by cobbieffo, Jan 4, 2011.

  1. cobbieffo

    cobbieffo Banned

    Is it possible to have a div auto-stretch in height without using javascript?

    For example
    Lock a div to the top of the browser window,
    and one to the bottom,
    then have the middle one auto-stretch depending (based on browser window size)
     
  2. ezeapostle

    ezeapostle New Member

    Sure, simply create 3 divs and float and clear each of the divs.

    Give the top and bottom divs a fixed height in px e.g. 100px and then the middle div a height of 100%
     
  3. Victorious

    Victorious New Member

Share This Page