This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Positioning a Div Container inside Another Div Container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Positioning a Div Container inside Another Div Container" Watch "Positioning a Div Container inside Another Div Container" New topic
Author

Positioning a Div Container inside Another Div Container

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
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

Joined: Jan 10, 2002
Posts: 61092
    
  66

Absolutely positioned elements are not part of the auto flow and will not affect the auto height of the container.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Positioning a Div Container inside Another Div Container