Hope it's easy, but I can't hack it quickly ...
I have a layout in 2 columns, and the content in the right column is dynamic and controlled by ajax. Thus, the height of the page changes depending on what is in the right column.
I want to have a small flash file (400px x 200px) attached to the bottom of the page, but under column 1.
It is easy. The problem is that I want the flash to have a negative top edge of -200px, so it does not focus on itself. It also reduces empty white space.
<div id="container"> <div id="col_1" style="float:left; padding-bottom:200px;">Some static content</div> <div id="col_2" style="float:left">AJAX content</div> <div style="clear:left"></div> <div id="flash_container" style="margin-top:-200px;> <object>Flash file</object> </div> </div>
I simplified the code quite a bit, but you should see what I mean. Simple 2 columns, clear the columns, break through the negative margin on the flash div. It works fine in IE6, Safari, and is difficult to hold back in Opera, Firefox and Chrome.
Can you apply a negative supply of "through" a clear?
All help is appreciated;)
source share