Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Weller on February 11, 2006 at 11:44 am

    I need to position the ‘div’ element so that it begins 150px from top and goes right until the bottom end of the screen.

    I tried ‘height: 100%’ & ‘top: 150px’ but it just makes it the height of current browser window height and shifts it 150 pixels to the bottom.

    This is not what I want. The Div layer is suposed to have a scroll bar of it’s own and that why it shouldn’t go beyond the bottom edge of window.

    So, in a nutshel, what I want is a layer that starts 150px under the top edge, goes right to the bottom edge and redraws after user window vertical size change.

    thanks for help

    marcel

    Curtis Thompson replied 20 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Curtis Thompson

    February 11, 2006 at 3:57 pm

    hello…

    short answer is that you have to figure out the height of the inner window of the browser (different for firefox/safari/etc vs ie, but doable) and then adjust the height of the div after that – then add an “onresize” event to the body and run that same function as they resize…

    as for scrolling – you need to add an overflow param to your css for the div for that to kick in…

    sitruc

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy