This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 1394
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: 60810
    
  65

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
 
Similar Threads
DIV Tag Auto Width and Height
Embeded DIV Tags
CSS puzzle : center a div, but then place another to the right of it
RichComboBox inside a scrollable div.
Problem in setting footer when content extends page length