How to position a nested DIV at bottom of parent DIV (same as background-position: bottom)

Hi,

I am looking for solution to position a nested DIV at bottom of the parent DIV.
The functionality would be the same as positioning an image using 'background-position: bottom center'

Is this possible using CSS?
I am quite proficient at CSS but cannot think of how this could be achieved.

Would love to hear any input or comments on this.

Cheers.
Steve
<div id="ParentContainer" style="width:200px;height;500px;">
    
   <div id="AnyOldDiv_UsuallyLeftMenu" />
 
    <!-- Need this container to be at bottom of 'ParentContainer' -->
    <div id="NestedContainer" />
 
</div>

Open in new window

smaccaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gobanCommented:
Here is one possible way
<div id="AnyOldDiv_UsuallyLeftMenu" style="background:#ccccff; z-index:1; position:absolute; height: 500px; width: 200px;">Container Div
<!-- Need this container to be at bottom of 'ParentContainer' -->
<div id="2" style="background:#ffcccc; z-index:2; position:absolute; left: 50px; top: 450px; height: 50px;">Nested Div</div>
</div>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
smaccaAuthor Commented:
can you absolute position the nested container from 'bottom'.
The html provided assumes the container is of a fixed height.
<div id="AnyOldDiv_UsuallyLeftMenu" style="background:#ccccff; z-index:1; position:absolute; height: 500px; width: 200px;">Container Div
<!-- Need this container to be at bottom of 'ParentContainer' -->
<div id="2" style="background:#ffcccc; z-index:2; position:absolute; left: 50px; bottom: 50px; height: 50px;">Nested Div</div>
</div>

Open in new window

0
fridaynightjazzCommented:
smacca,

How about the code snippet below?

Hope this helps!

FNJ
<div id="AnyOldDiv_UsuallyLeftMenu" style="background:#ccccff; z-index:1; position:absolute; height: 800px; width: 200px;border:solid 1px #000;">
	Container Div
	<div id="2" style="background:#ffcccc; z-index:2; position:absolute; left: 50px; bottom: 0px; height: 50px; width:50px;">Nested Div</div>
</div>

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.