Max Height 100%

Discussion in 'CSS' started by Kalyse, Mar 7, 2007.

  1. #1
    I know all about the problems with this I just cant get my head around.

    Its been years since I have had to ask a CSS question but for this I definately need some help.

    www.invision-gaming.co.uk is the page.

    I am trying to blank out the whole page.

    This is what I am trying to do.

    www.invision-gaming.co.uk?translucent

    As you can see the 100% is obviously only the height of the browser (whcih is should be). How can I stretch it to the full length of the scrollable overflowed body :)
     
    Kalyse, Mar 7, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Forget the 100% of anything, and lose the #translucent div. Do this:
    
    #background {
        opacity: .2;
        }
    Code (markup):
    cheers,

    gary
     
    kk5st, Mar 8, 2007 IP
  3. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #3
    bacanze, Mar 8, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    The OP had the variety of opacity properties for the different browsers. My point was on which element to put the property.

    gary
     
    kk5st, Mar 8, 2007 IP
  5. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I set that and it worked well, atleast all but the problem where it makes the body image show, If I have it like that I would need a black background behind it, so that the opacity looks correct and the bg.gif isnt display as it is.
     
    Kalyse, Mar 8, 2007 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Just understand that the opacity property affects the element it is applied to and all descendants of the element. You should be able to give body a black or dark gray bg color and apply opacity to a wrapper div that contains the page. At 0 opacity, nothing would be seen but black. As opacity rises, more content would become visible.

    cheers,

    gary
     
    kk5st, Mar 8, 2007 IP