Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to fixed the div position within their parent. If the parent div scroll end's, child div also scroll along with parent div. For example see this page
In that page a category div was fixed within their parent div. After scroll the page when it reach the parent div end, child div also scroll with them. How to create like that.
Posted
Updated 9-Jan-15 1:55am
v2

1 solution

Try this jsfiddle[^].
++++++[round 2]+++++++++
http://plnkr.co/edit/5Dk8u2SyHKqLwAuQSsDJ?p=preview[^]
 
Share this answer
 
v3
Comments
Satheesh Santhosh 9-Jan-15 10:57am    
actully what i'm tried was, i need to fixed div inside a div tag, child div should not overlap the parent div. click here to see what i'm tried. In that plunker page,please extract the width of output screen to see thee result.
Peter Leow 9-Jan-15 21:55pm    
http://plnkr.co/edit/E1ehnvXbDqMx8KOXmlLX?p=preview
Satheesh Santhosh 10-Jan-15 2:50am    
please see my plunker again. I write my actual problem their.
Peter Leow 10-Jan-15 5:23am    
See improved solution.
Satheesh Santhosh 10-Jan-15 5:28am    
thanks buddy.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900