|  | Posted by Els on 06/07/05 15:23 
Gavin wrote:
 > Here my code below.
 
 Please don't copy paste code, provide a URL instead.
 
 > If I put a border around the wrapper box, its fine if the content
 > doesn't go below the bottem of the menu, but if it does, the wrapper doesn't
 > expand to fit.
 
 [snip a /lot/ of code]
 
 > #maincontent {
 >  width: 525px;
 >  left: 140px;
 >  position: absolute;
 >  top: 170px;
 >  text-align: left;
 >  height: auto;
 > }
 
 position:absolute takes the element out of the normal flow.
 The wrapper box doesn't "see" the #maincontent, so it won't expand to
 fit either.
 
 I can't give you a ready solution without diving into your code, which
 I'm not keen to do atm. General solution: don't use position:absolute
 on the #maincontent, but find another way of placing it where you
 want. If it's a page with a floated menu of 140px to the left, just
 give the #maincontent a left margin of 140px and don't position it.
 
 --
 Els                     http://locusmeus.com/
 Sonhos vem. Sonhos vão. O resto é imperfeito.
 - Renato Russo -
 Now playing: David Bowie - Beauty And The Beast
  Navigation: [Reply to this message] |