AbydosGater Posted June 16, 2008 Share Posted June 16, 2008 Hey ive been working on a script for a friend and he is using divs.. havnt worked with HTML and CSS in ages.. so used to tables. I have a div for main content.. and within that div there are other divs for menus and such. But if the divs for the menus are larger then the parent div they just draw out of it and down the page leaving the other div behind? How could i set it so that the main container div keeps drawing down the page with its content? Thanks, Andy. Quote Link to comment https://forums.phpfreaks.com/topic/110478-solved-put-a-scrollbar-on-a-div/ Share on other sites More sharing options...
haku Posted June 17, 2008 Share Posted June 17, 2008 I gotta say, I don't really understand what you mean. A link would help on this. Quote Link to comment https://forums.phpfreaks.com/topic/110478-solved-put-a-scrollbar-on-a-div/#findComment-566978 Share on other sites More sharing options...
xtopolis Posted June 17, 2008 Share Posted June 17, 2008 http://www.w3schools.com/Css/pr_pos_overflow.asp div#urDiv { overflow: scroll; } You may have to worry about text wrap if you only want it to scroll vertically. Quote Link to comment https://forums.phpfreaks.com/topic/110478-solved-put-a-scrollbar-on-a-div/#findComment-566980 Share on other sites More sharing options...
AbydosGater Posted June 17, 2008 Author Share Posted June 17, 2008 Wow works perfectly. Thanks mate Quote Link to comment https://forums.phpfreaks.com/topic/110478-solved-put-a-scrollbar-on-a-div/#findComment-567281 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.