dflow Posted November 24, 2009 Share Posted November 24, 2009 how do i position a div under a content height dependent div? <style type="text/css"> #container { width:990px; margin:auto; position:relative; } #expandingcontent {height:100%; position:relative; } #under-expandingcontent {} </style> <div id="container > <div id="expandingcontent">content</div> <div id="under-expandingcontent">content2</div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/182806-div-positioning-under-expanding-content-div/ Share on other sites More sharing options...
jcombs_31 Posted November 24, 2009 Share Posted November 24, 2009 A div is a block level element, it will natively drop below the previous div unless you are using floats or change the display properties. Quote Link to comment https://forums.phpfreaks.com/topic/182806-div-positioning-under-expanding-content-div/#findComment-964913 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.