Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > aligning a nested div to the bottom of the parent div

Reply
Thread Tools

aligning a nested div to the bottom of the parent div

 
 
Chris
Guest
Posts: n/a
 
      09-27-2006
Hi,
Is there an easy way to align a nested div to the bottom of the parent div?
Is there a solution for this without having to resort to the use of a lot
more div's and spacers?
Thanks,
 
Reply With Quote
 
 
 
 
jojo
Guest
Posts: n/a
 
      09-28-2006
Chris wrote:

> Is there an easy way to align a nested div to the bottom of the parent div?


i guess the outer div has got a specified height? if it does not have
the inner div just has to be the last element in the outer one and it is
displayed at the bottom...

> Is there a solution for this without having to resort to the use of a lot
> more div's and spacers?


you mean <spacer>?? never ever use it!! it is an "IE only tag" and
should not be used!
 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      09-28-2006
Chris wrote:
> Is there an easy way to align a nested div to the bottom of the parent div?


div.parent {
position: relative;
}
div.nested {
position: absolute;
bottom: 0;
}

Use with caution, and test in every browser you can find at a wide range
of window and text (zoom) sizes, because it is quite likely to break
somewhere.

--
Berg
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Adding float makes nested div tags go out of parent div. Jimmy HTML 7 11-21-2008 10:44 AM
css "div" bottom of window or bottom of content. Dan HTML 1 04-04-2008 09:40 AM
while aligning text to bottom of page ,facing resize problem kk.simhadri@gmail.com HTML 1 04-19-2007 08:51 PM
Aligning content to the bottom of the viewport withrye@gmail.com HTML 1 05-28-2006 06:20 AM



Advertisments