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?? Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.