This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Positioning a Div Container inside Another Div Container

 
Steve Dyke
Ranch Hand
Posts: 1616
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: 64631
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