Log in

View Full Version : DIV Auto Adjust Height - Please Help



me_myself
07-08-2011, 06:25 PM
I am breaking my head over this - my screen is a simple layout with a header, siderbar and main content holder. The problem i am facing is I need my sidebar to automatically adjust its height and shrink or expand the sidebar scrollbar (not the page scrollbar). Requirement is to disable page scrollbar.

I need something like google maps - if you see this page (Google Map Search Result (http://maps.google.com/maps?saddr=Santa+Clarita,+CA+91355&daddr=34.14484,-118.278665+to:I-405+S&hl=en&sll=34.229971,-118.405151&sspn=1.169454,2.345581&geocode=FV2DDQIdEnDu-CkPpehtpYDCgDHx_G9oPLgVQQ%3BFUgCCQId9zXz-ClhtdvgYMDCgDHvxot_RMLlpQ%3BFSDFBAIdolny-A&mra=mift&mrsp=1&sz=9&z=9&via=1)) when you increase or decrease the height of the browser, the sidebar automatically adjusts its height and scrollbar size. This is exactly what I am looking for.

Attaching my html (i've renamed it to .txt file - please change it back to .html) - please look at it and let me know what i need to do.

Please help. Thanks a lot.