aligning a nested div to the bottom of the parent div

Discussion in 'HTML' started by Chris, Sep 27, 2006.

  1. Chris

    Chris Guest

    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?
    Chris, Sep 27, 2006
    1. Advertisements

  2. Chris

    jojo Guest

    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...
    you mean <spacer>?? never ever use it!! it is an "IE only tag" and
    should not be used!
    jojo, Sep 28, 2006
    1. Advertisements

  3. Chris

    Bergamot Guest

    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
    Bergamot, Sep 28, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.