DIV absolute positioning - maintain position after browser window resize?

To make an element position absolutely to it's parent, the parent must be set to position:relative For example: div id="parent" style="margin:0 auto; width:500px; position:relative.

To make an element position absolutely to it's parent, the parent must be set to position:relative. For example: This doesn't have to be the direct parent, when you set absolute positioning the element will position from the nearest ancestor with a set positioning.

Ah, parent relative, child absolute. Thanks shanethehat – Steilflug Apr 6 at 9:57.

You need to give your parent div position:relative and your child div position absolute Check working example at jsfiddle.net/remYW.

Thanks for the link. – Steilflug Apr 6 at 10:00.

Parent must have position:relative; (or some other positioning apart from static) so that it's child can be positioned absolutely relative to them.

Thank you, too. – Steilflug Apr 6 at 9:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions