problems with liquid layout

Try that ...
Put this on end of CSS
Code:
.clearfix:after {
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */
And then make code like this
Code:
      ....
      <p>content here, does not expand main div</p>
  </div>
<div class="clearfix"></div>
If this wont work, try to put <div class="clearfix"></div> on difrent places.
 
Ok so after just about throwing out CSS for this layout, I figured it out. The reason it wasn't working is because I was putting a relative position on my content DIV. For that position, I was putting it 229px from the top. That meant after my Main Container expanded to fit the Content div, The content div THEN pushed itself down 229 px. The fix? simple...

For the clear div I did this. after My content div I made a clear div, <div style"clear:both; height:229px;"></div>

So for anyone having problems with a content div expanding when you are trying to absolutely position it, use this fix.
 
Back
Top