FORUMS: list search recent posts

CSS positioning

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
CSS positioning
on Feb 11, 2006 at 11:44:43 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


Return to posts index

Curtis Thompson
Re: CSS positioning
on Feb 11, 2006 at 3:57:27 pm


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...


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved