View Single Post
  #2 (permalink)  
Old Jul 14th, 2006, 21:44
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Expanding div moving other div

Your problem is because you have used
Code: Select all
position: absolute;
This styling instruction takes the element out of the natural flow and 'pins' it at a precise location, with respect to its containing element.

Give your 'content' div a
Code: Select all
position: relative;
Dont give it top and left values unless you have to tweak its location.

If the 'bottom' div is the next element after the 'content', then give that a
Code: Select all
position: relative;
also. It will then move down as the 'content' expands.

There may be issues that need to be addressed based on other styling code you have but you get the idea.
Reply With Quote