Lets assume for some reason I can not change the HTML, neither use JavasScript. Lets assume the position of #content_actual
depends on the height of #element
. #element
has a flexible height.
Is there a solution for this problem?
HTML:
<div id="content">
<div id="element">ABCDE</div>
<div id="content_actual">FGHIJ</div>
</div>
CSS:
#content {
width:960px;
margin: 0 auto;
}
#element {
// width: 100% of body width
// position: everything but position absolute or fixed
}