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> 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. 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
Archived
This topic is now archived and is closed to further replies.