Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Positioning a Div Container inside Another Div Container

 
Steve Dyke
Ranch Hand
Posts: 1619
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I go again.

I have an absolutely positioned div container with an auto height.

I use jquery to load the container with another absolutely positioned div container but when I do the height of the parent seems to not adjust from its original no height state.

I have set the css up as such:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Absolutely positioned elements are not part of the auto flow and will not affect the auto height of the container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic