how to make the background opacity change without the text doing so too

Discussion in 'CSS' started by kangaroobin, Mar 20, 2008.

  1. #1
    i am trying to make my div's background have a transparency (not 100%) to it..not hard

    but when I do so the text goes transparent as well..

    basically i need a way to see through the background some but keep the text at full opacity

    Thanks
     
    kangaroobin, Mar 20, 2008 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorry, you'll need two containers. The background one is semi-opaque while the top one has the text.

    Like this site (which doesn't do anything, it's a placeholder): www.stichtinglevenzonderzorg.com the green at the left. Look at the code.
     
    Stomme poes, Mar 20, 2008 IP
  3. kangaroobin

    kangaroobin Peon

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    gotcha! great thnx!
     
    kangaroobin, Mar 20, 2008 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Stomme poes, Apr 25, 2008 IP