make a div stick with the higher one

Discussion in 'CSS' started by maileen, Jun 26, 2010.

  1. #1
    Hi,

    under Joomla, i have 5 divs.
    - 1 on the top for main menu and banners
    - 1 on the left for my menu category,
    - 1 central for the content
    - 1 on the right for ads.
    - and 1 as footer

    as my content div heigh changes during the web browsing, i would like to make my left div (category menu) still reaching my footer div.
    this is needed because my left div as for background-color a different color than the content one.

    how can i do to make the left div everytime reaching the footer one even if my content div heigh is changing ?

    thanks a lot,
    A.
     
    maileen, Jun 26, 2010 IP
  2. ZeeshanButt

    ZeeshanButt Well-Known Member

    Messages:
    307
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Can you post your site url here?
     
    ZeeshanButt, Jun 26, 2010 IP
  3. maileen

    maileen Member

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    sorry but for now it is on my localhost development computer. i still didn't store it on internet till now as i'm working on it.
     
    maileen, Jun 26, 2010 IP
  4. fqqs

    fqqs Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try margin:auto

    or

    height:9999px;
    background-position:top;
    overflow:hidden;
     
    fqqs, Jun 27, 2010 IP