liamloveslearning Posted January 11, 2009 Share Posted January 11, 2009 hi everyone, on my site (http://liamm.co.uk) the menu on the left is a div, and the content is in a seperate div; when the user scrolls down both of the divs move up respectively, however I want my menu div to stay fixed; ive tried changing the css position properties to no avail and im just wondering is this possible? thanks if anyone can help me, I hope this is detailed enough too Link to comment https://forums.phpfreaks.com/topic/140347-solved-scrolling-div/ Share on other sites More sharing options...
Daniel0 Posted January 11, 2009 Share Posted January 11, 2009 Try to give the content and nav divs 100% width and give content overflow:auto;. Link to comment https://forums.phpfreaks.com/topic/140347-solved-scrolling-div/#findComment-734635 Share on other sites More sharing options...
haku Posted January 11, 2009 Share Posted January 11, 2009 Add position:fixed to the menu div. That will hold it in place even if/when the page scrolls. Link to comment https://forums.phpfreaks.com/topic/140347-solved-scrolling-div/#findComment-734753 Share on other sites More sharing options...
liamloveslearning Posted January 12, 2009 Author Share Posted January 12, 2009 briliant, the position:fixed sorted it right out Link to comment https://forums.phpfreaks.com/topic/140347-solved-scrolling-div/#findComment-735363 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.