div help

Discussion in 'HTML & Website Design' started by surya, Sep 22, 2007.

  1. #1
    could anyone help me out of making a div box with a transparent background??:rolleyes:
     
    surya, Sep 22, 2007 IP
  2. mds

    mds Active Member

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2

    What actually do you want in the box?
     
    mds, Sep 22, 2007 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Transparent background is actually the default of div boxes : ) That's why, if you have a background colour on the body, you will see the same colour in any div boxes where there's no colour specified.
     
    Stomme poes, Sep 22, 2007 IP
  4. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #4
    I'm guessing you want it to be not fully transparent in which case you would use these CSS properties:

    opacity = 0.5;
    -moz-opacity: 0.5;
    -khtml-opacity: 0.5;
    filter: alpha(opacity=50);

    The variants are for Gecko, KHTML and IE based browsers.
     
    krt, Sep 22, 2007 IP