I have this example http://jsfiddle.net/HnfCU/
I use jQuery to show and hide the .child div. The .child is positioned absolute to .parent The problem I try to solve is the height of the .child.
I want .child‘s background to cover it’s whole area. Now, using height:100% it covers it partially. I can’t use fixed height because the content will be dynamic.
Any method, css or javascript[jQuery], is acceptable, or any change on the structure.
If I understand you correctly, removing
bottom: 5pxandheight: 100%will get you what you want: http://jsfiddle.net/blineberry/HnfCU/1/This allows
.childto get its height from its contents.