phppaper Posted March 18, 2008 Share Posted March 18, 2008 How do you set the position of a DIV within another DIV according to the DIV which it within instead of the page?? Link to comment https://forums.phpfreaks.com/topic/96690-position-div-within-another-div/ Share on other sites More sharing options...
haku Posted March 18, 2008 Share Posted March 18, 2008 Add this to the CSS for the containing div: position: relative; After you do that, anything absolutely positioned inside it is positioned relative to it. Link to comment https://forums.phpfreaks.com/topic/96690-position-div-within-another-div/#findComment-494978 Share on other sites More sharing options...
soycharliente Posted March 18, 2008 Share Posted March 18, 2008 Never mind. I misread the question. Link to comment https://forums.phpfreaks.com/topic/96690-position-div-within-another-div/#findComment-495009 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.