undertaker Posted March 23, 2011 Share Posted March 23, 2011 I have problems setting layout for my application. I think the picture will explain my problem [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/ Share on other sites More sharing options...
cssfreakie Posted March 23, 2011 Share Posted March 23, 2011 overflow:scroll; ? Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1191294 Share on other sites More sharing options...
nogray Posted March 23, 2011 Share Posted March 23, 2011 To set the height in CSS to a percentage, you would need to set the height of all the parent elements including the html document. Otherwise, the browser doesn't have a refernace for the percentage. Last is to add overflow:auto to the content div. e.g. html, body {height: 100%} This might not work the same in all browsers, not tested Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1191410 Share on other sites More sharing options...
undertaker Posted March 23, 2011 Author Share Posted March 23, 2011 thanks Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1191487 Share on other sites More sharing options...
undertaker Posted March 23, 2011 Author Share Posted March 23, 2011 In firefox if i apply height:100%; and overflow:auto; to same div, overflow doesnt work. Whole page stretches beyond the limits of height 100%... :/ Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1191493 Share on other sites More sharing options...
undertaker Posted March 23, 2011 Author Share Posted March 23, 2011 ok figured it out. thnx to all Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1191500 Share on other sites More sharing options...
cssfreakie Posted March 23, 2011 Share Posted March 23, 2011 ok figured it out. thnx to all would be nice to post your solution, so instead of only requesting help, you also help others out that might search and end up on your thread. Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1191538 Share on other sites More sharing options...
stevengreen22 Posted April 8, 2011 Share Posted April 8, 2011 lol, of all the random posts to come to for help....typical, mvoing swiftly on to the next one Quote Link to comment https://forums.phpfreaks.com/topic/231487-100-height-scrolling/#findComment-1198929 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.