Im trying to set an automatic height a div that contains 2 child elements, positioned fixed and absolutely respecitvely.
I want my parent container to have an auto height but I know this is hard as the child elements are taken out of the page structure with their positions.
I have tried setting a height to my parent div that works, but with my layout being responsive, when its scaled down to mobile, the height remains the same where as the content within becomes stacked and so the height needs to increase with its children.
Not sure if this makes sense, I dont have my actual code on me atm but ive made a fiddle trying to explain...
http://jsfiddle.net/dPCky/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…