semi transparent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • philleep
    New Member
    • Mar 2007
    • 74

    semi transparent

    hi,

    can anyone tell me how to make the background of a div semitransparent . basically what i'm doing is overlaying this div onto the main page. i still what the page to be vaguely visible tho. any suggestion?

    cheer
    philleep
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Opacity Of course, IE will cause most of your problems.

    Comment

    • RKZA
      New Member
      • Mar 2007
      • 8

      #3
      Hay philleep,

      Now if you what semi-transparency in IE theN use the code below, but be warned ;¬) even though it works it will not validate through W3C CSS Validator.
      So you use opacity in FireFox and Opera and Netscape, use filter in IE.
      Just put it in a separate css file.
      Try it out...
      Code:
      .ClassName {
      filter:progid:DXImageTransform.Microsoft.BasicImage(opacity=0.75);
      }
      You must copy filter exact because it is case sensitive. The gap between the 'g' and 'e' is not Intentional it should be one word if you will. This code gives you 75% opacity but of cause you can change it to what suits you.

      Regards
      R.K.

      Comment

      • philleep
        New Member
        • Mar 2007
        • 74

        #4
        cheer guys

        Comment

        Working...