Hi every body, i need to position an inner div into an external one, and i need to positioning the inner one absolutely with respect to the external div and Not with respect to all the page ... when i set the position to the inner div to "absolute" with some coordinates, the inner div is positionned absolutely with respect to ALL the page and Not w-r-t its Parent .... Please help me : HOW to positioning an inner div w-r-t an external one (its Parent) Many thanks
Absolutely positioned elements are always placed relative to the nearest positioned parent element. Make your parent div 'position:relative' to do what you want.
I was thinking that "absolute" takes the element out of the page flow. This is probably the best explanation I've seen on CSS positioning
It is. The normal page flow would force the element to be placed in descending order down the page. Absolutely positioning it positions the element relative to its nearest positioned element which would be the body. By 'positioning' the parent of the absolutely positioned element, you anchor it to the parent.
OK, yeah I see what you're saying. I would've used a float with margins to position it or no margins to stick it to the upper left or right corner.