aligning a nested div to the bottom of the parent div

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

  1. Chris

    Chris Guest

    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,
    Chris, Sep 27, 2006
    #1
    1. Advertising

  2. Chris

    jojo Guest

    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!
    jojo, Sep 28, 2006
    #2
    1. Advertising

  3. Chris

    Bergamot Guest

    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
    Bergamot, Sep 28, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan
    Replies:
    1
    Views:
    8,342
    ainigma
    Apr 4, 2008
  2. Noozer
    Replies:
    1
    Views:
    7,104
    Carolyn Marenger
    Mar 13, 2006
  3. Replies:
    1
    Views:
    474
    Neredbojias
    May 28, 2006
  4. Replies:
    1
    Views:
    380
    Beauregard T. Shagnasty
    Apr 19, 2007
  5. Jimmy
    Replies:
    7
    Views:
    4,887
    Chaddy2222
    Nov 21, 2008
Loading...

Share This Page